Skip to content

Commit

Permalink
Add ContractsTest namespace to composer (#4)
Browse files Browse the repository at this point in the history
* Fix namespace dir
* Change tests dir to test
* Change namespace to singular
  • Loading branch information
dafeder authored and fmizzell committed Jul 31, 2019
1 parent 767be61 commit fb1cbe9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"type": "library",
"autoload": {
"psr-4": {
"Contracts\\": "src/"
"Contracts\\": "src/",
"ContractsTest\\": "test/"
}
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<testsuites>
<testsuite name="all">
<directory suffix="Test.php" phpVersion="7.2" phpVersionOperator=">=">tests</directory>
<directory suffix="Test.php" phpVersion="7.2" phpVersionOperator=">=">test</directory>
</testsuite>
</testsuites>

Expand Down
2 changes: 1 addition & 1 deletion tests/MockTest.php → test/tests/MockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ContractsTests;
namespace ContractsTest;

class MockTest extends \PHPUnit\Framework\TestCase
{
Expand Down

0 comments on commit fb1cbe9

Please sign in to comment.