mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Test to check if the full test path is shown
This commit is contained in:
@ -10,6 +10,11 @@ $run = function (string $target) {
|
||||
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
|
||||
};
|
||||
|
||||
test('output contains full test path', function() use ($run) {
|
||||
$output = $run('tests/Fixtures/DirectoryWithTests/ExampleTest.php');
|
||||
assertStringContainsString(' PASS Tests\Fixtures\DirectoryWithTests\ExampleTest', $output);
|
||||
});
|
||||
|
||||
test('allows to run a single test', function () use ($run) {
|
||||
$output = $run('tests/Fixtures/DirectoryWithTests/ExampleTest.php');
|
||||
assertStringContainsString(' PASS Tests\Fixtures\DirectoryWithTests\ExampleTest', $output);
|
||||
|
||||
Reference in New Issue
Block a user