File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
namespace PHPUnit \Util ;
11
11
12
+ use const DIRECTORY_SEPARATOR ;
12
13
use PHPUnit \Framework \Attributes \CoversClass ;
13
14
use PHPUnit \Framework \Attributes \Small ;
14
15
use PHPUnit \Framework \TestCase ;
@@ -22,7 +23,7 @@ public function testCanResolveStreamOrFile(): void
22
23
$ this ->assertSame ('php://stdout ' , Filesystem::resolveStreamOrFile ('php://stdout ' ));
23
24
$ this ->assertSame ('socket://hostname:port ' , Filesystem::resolveStreamOrFile ('socket://hostname:port ' ));
24
25
$ 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 ' ));
26
27
$ this ->assertFalse (Filesystem::resolveStreamOrFile (__DIR__ . '/does-not-exist/does-not-exist ' ));
27
28
}
28
29
}
You can’t perform that action at this time.
0 commit comments