Skip to content

Commit

Permalink
Improve autoloading, asssertions and CI trigger (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k authored Jan 6, 2021
1 parent 2f043ba commit 936ee5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@
"phpunit/phpunit": ">=8.0"
},
"autoload": {
"psr-0": {
"NXP": "src/"
"psr-4": {
"NXP\\": "src/NXP"
}
},
"autoload-dev": {
"psr-4": {
"NXP\\Tests\\": "tests/"
}
}
}
2 changes: 1 addition & 1 deletion tests/MathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public function testSetVarsAcceptsAllScalars()
$calculator->setVar('null', null);
$calculator->setVar('float', 1.1);
$calculator->setVar('string', 'string');
$this->assertEquals(8, count($calculator->getVars()));
$this->assertCount(8, $calculator->getVars());
$this->assertEquals(true, $calculator->getVar('boolTrue'));
$this->assertEquals(false, $calculator->getVar('boolFalse'));
$this->assertEquals(1, $calculator->getVar('int'));
Expand Down

0 comments on commit 936ee5c

Please sign in to comment.