Skip to content

Tests for PathReducerTest fail on Windows #1139

@sebastianbergmann

Description

@sebastianbergmann
1) SebastianBergmann\CodeCoverage\Util\PathReducerTest::testReduceWithSinglePharFileStripsSchemeAndReturnsDirname
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'/path/to'
+'\path\to'

D:\a\php-code-coverage\php-code-coverage\tests\tests\Util\PathReducerTest.php:44

2) SebastianBergmann\CodeCoverage\Util\PathReducerTest::testReduceWithMultipleFilesExtractsLongestCommonPath
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'/common/path'
+''

D:\a\php-code-coverage\php-code-coverage\tests\tests\Util\PathReducerTest.php:57

3) SebastianBergmann\CodeCoverage\Util\PathReducerTest::testReduceWithMultiplePharFilesStripsSchemeAndExtractsCommonPath
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'/common'
+'\common'

D:\a\php-code-coverage\php-code-coverage\tests\tests\Util\PathReducerTest.php:70

4) SebastianBergmann\CodeCoverage\Util\PathReducerTest::testReduceWithMultipleFilesInDifferentDirectoriesReturnsRootPath
Failed asserting that two arrays are identical.
--- Expected
+++ Actual
@@ @@
-Array &0 [
-    0 => 'alpha/x.php',
-    1 => 'beta/y.php',
-]
+Array &0 []

D:\a\php-code-coverage\php-code-coverage\tests\tests\Util\PathReducerTest.php:84

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions