From c05df43217936429cb5d0d4db58c7dc79c5e2ada Mon Sep 17 00:00:00 2001 From: Dimitrios Karvounaris Date: Tue, 2 Jun 2020 18:29:50 +0200 Subject: [PATCH] Compare lines without involving linebreaks Fixes tests failing under Windows environments for any linebreak character differences --- .../DirectoryWithTests/ExampleTest.php | 2 +- tests/Fixtures/ExampleTest.php | 2 +- tests/Visual/SingleTestOrDirectory.php | 43 +++++++------------ 3 files changed, 18 insertions(+), 29 deletions(-) diff --git a/tests/Fixtures/DirectoryWithTests/ExampleTest.php b/tests/Fixtures/DirectoryWithTests/ExampleTest.php index 8553ad34..81ce02ff 100644 --- a/tests/Fixtures/DirectoryWithTests/ExampleTest.php +++ b/tests/Fixtures/DirectoryWithTests/ExampleTest.php @@ -1,3 +1,3 @@ assertTrue(true); +it('example 1')->assertTrue(true); diff --git a/tests/Fixtures/ExampleTest.php b/tests/Fixtures/ExampleTest.php index 8553ad34..a2704020 100644 --- a/tests/Fixtures/ExampleTest.php +++ b/tests/Fixtures/ExampleTest.php @@ -1,3 +1,3 @@ assertTrue(true); +it('example 2')->assertTrue(true); diff --git a/tests/Visual/SingleTestOrDirectory.php b/tests/Visual/SingleTestOrDirectory.php index 5cf1e6f3..40ab399c 100644 --- a/tests/Visual/SingleTestOrDirectory.php +++ b/tests/Visual/SingleTestOrDirectory.php @@ -11,24 +11,19 @@ $run = function (string $target) { }; test('allows to run a single test', function () use ($run) { - assertStringContainsString(<<run(); $output = $process->getOutput(); - assertStringContainsString(<<run(); $output = $process->getOutput(); - assertStringContainsString(<<