Skip to content

Commit

Permalink
Update tests namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
waterloomatt committed Jul 31, 2023
1 parent be34d37 commit 1727ca0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
],
"autoload": {
"psr-4": {
"LinusShops\\Pipeline\\Tests\\": "tests/",
"LinusShops\\Pipeline\\": "src/"
}
},
"autoload-dev": {
"LinusShops\\Pipeline\\Tests\\": "tests/"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
Expand Down
19 changes: 7 additions & 12 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="Application Test Suite">
<directory suffix="Test.php">./tests</directory>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
</php>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
</phpunit>
6 changes: 3 additions & 3 deletions tests/UnitTest.php → tests/Unit/UnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace LinusShops\Pipeline\Tests;
namespace LinusShops\Pipeline\Test\Unit;

use Exception;
use LinusShops\Pipeline\Pipeline;
Expand All @@ -13,14 +13,14 @@
*
* @author Matt Skelton <[email protected]>
*/
class UnitTest extends TestCase
class UnitTfest extends TestCase
{
/**
* Tests that an empty pipeline does not modify the input.
*
* @return void
*/
public function testEmptyPipelineDoesNotModifyInput()
public function testEfmptyPipelineDoesNotModifyInput()
{
// Arrange
$expected = 'A';
Expand Down

0 comments on commit 1727ca0

Please sign in to comment.