Skip to content

Commit

Permalink
E2E Tests: use OS agnostic directory separators
Browse files Browse the repository at this point in the history
This fixes a number of tests which would otherwise fail when running on Windows.
  • Loading branch information
jrfnl authored and sebastianbergmann committed Sep 4, 2023
1 parent 2552659 commit c472292
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithNumericDataSetNameTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithNumericDataSetNameTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithNumericDataSetNameTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithNumericDataSetNameTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithStringDataSetNameTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithStringDataSetNameTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithStringDataSetNameTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithStringDataSetNameTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/testdox/diff-colorized.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┊ -baz\n
┊ '
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDiffTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDiffTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand Down
4 changes: 2 additions & 2 deletions tests/end-to-end/testdox/metadata-colorized.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mMetadataTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mMetadataTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mMetadataTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mMetadataTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithNumericDataSetNameAndMetadataTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithNumericDataSetNameAndMetadataTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithNumericDataSetNameAndMetadataTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithNumericDataSetNameAndMetadataTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithStringDataSetNameAndMetadataTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithStringDataSetNameAndMetadataTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithStringDataSetNameAndMetadataTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithStringDataSetNameAndMetadataTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
4 changes: 2 additions & 2 deletions tests/end-to-end/testdox/metadata-verbose-colorized.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Runtime: %s
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mMetadataTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mMetadataTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -35,7 +35,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mMetadataTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mMetadataTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mDataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mDataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mCamelCaseTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mCamelCaseTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mCamelCaseTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mCamelCaseTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Runtime: %s
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mCamelCaseTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mCamelCaseTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -35,7 +35,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mCamelCaseTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mCamelCaseTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mSnakeCaseTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mSnakeCaseTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -32,7 +32,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mSnakeCaseTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mSnakeCaseTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Runtime: %s
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mSnakeCaseTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mSnakeCaseTest.php[2m:[22m[34m%d[0m
┴

Time: %s, Memory: %s
Expand All @@ -35,7 +35,7 @@ Summary of non-successful tests:
┐
├ Failed asserting that false is true.
│
[31m╵[0m %stests[2m/[22mend-to-end[2m/[22mtestdox[2m/[22m_files[2m/[22mSnakeCaseTest.php[2m:[22m[34m%d[0m
[31m╵[0m %stests[2m%e[22mend-to-end[2m%e[22mtestdox[2m%e[22m_files[2m%e[22mSnakeCaseTest.php[2m:[22m[34m%d[0m
┴

FAILURES!
Expand Down

0 comments on commit c472292

Please sign in to comment.