From 6e18912ea6f1083cf9c9e361ce6d3ab97c28c7b3 Mon Sep 17 00:00:00 2001 From: Dimitrios Karvounaris Date: Fri, 5 Jun 2020 17:38:59 +0200 Subject: [PATCH] Test to check if the full test path is shown --- tests/Visual/SingleTestOrDirectory.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Visual/SingleTestOrDirectory.php b/tests/Visual/SingleTestOrDirectory.php index 40ab399c..6298f98e 100644 --- a/tests/Visual/SingleTestOrDirectory.php +++ b/tests/Visual/SingleTestOrDirectory.php @@ -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);