Skip to content

Commit

Permalink
improve assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaelecarelle committed Sep 24, 2024
1 parent caba345 commit 39c1d76
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/Functional/Filter/ExcludeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Tests\Functional\Filter;

use Paraunit\Filter\Filter;
use Symfony\Component\Filesystem\Path;
use Tests\BaseFunctionalTestCase;

class ExcludeTest extends BaseFunctionalTestCase
Expand All @@ -22,6 +23,12 @@ public function testExcludeTestSuites(): void
/** @var Filter $filter */
$filter = $this->getService(Filter::class);

$this->assertCount(1, $filter->filterTestFiles());
$files = $filter->filterTestFiles();

$this->assertCount(1, $files);

$fileExploded = explode('/', $files[0]);

$this->assertSame('ThreeGreenTestStub.php', end($fileExploded));
}
}

0 comments on commit 39c1d76

Please sign in to comment.