Skip to content

Commit 41a919a

Browse files
Merge branch '10.5' into 11.0
2 parents 0593b34 + f01a305 commit 41a919a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/Util/FilesystemTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Util;
1111

12+
use const DIRECTORY_SEPARATOR;
1213
use PHPUnit\Framework\Attributes\CoversClass;
1314
use PHPUnit\Framework\Attributes\Small;
1415
use PHPUnit\Framework\TestCase;
@@ -22,7 +23,7 @@ public function testCanResolveStreamOrFile(): void
2223
$this->assertSame('php://stdout', Filesystem::resolveStreamOrFile('php://stdout'));
2324
$this->assertSame('socket://hostname:port', Filesystem::resolveStreamOrFile('socket://hostname:port'));
2425
$this->assertSame(__FILE__, Filesystem::resolveStreamOrFile(__FILE__));
25-
$this->assertSame(__DIR__ . '/does-not-exist', Filesystem::resolveStreamOrFile(__DIR__ . '/does-not-exist'));
26+
$this->assertSame(__DIR__ . DIRECTORY_SEPARATOR . 'does-not-exist', Filesystem::resolveStreamOrFile(__DIR__ . '/does-not-exist'));
2627
$this->assertFalse(Filesystem::resolveStreamOrFile(__DIR__ . '/does-not-exist/does-not-exist'));
2728
}
2829
}

0 commit comments

Comments
 (0)