File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function accept()
28
28
{
29
29
$ filename = $ this ->current ()->getRelativePathname ();
30
30
31
- if (defined ( ' PHP_WINDOWS_VERSION_MAJOR ' ) ) {
31
+ if ('\\' === DIRECTORY_SEPARATOR ) {
32
32
$ filename = strtr ($ filename , '\\' , '/ ' );
33
33
}
34
34
Original file line number Diff line number Diff line change @@ -734,7 +734,7 @@ public function getTestPathData()
734
734
*/
735
735
public function testAccessDeniedException (Adapter \AdapterInterface $ adapter )
736
736
{
737
- if (defined ( ' PHP_WINDOWS_VERSION_MAJOR ' ) ) {
737
+ if ('\\' === DIRECTORY_SEPARATOR ) {
738
738
$ this ->markTestSkipped ('chmod is not supported on Windows ' );
739
739
}
740
740
@@ -773,7 +773,7 @@ public function testAccessDeniedException(Adapter\AdapterInterface $adapter)
773
773
*/
774
774
public function testIgnoredAccessDeniedException (Adapter \AdapterInterface $ adapter )
775
775
{
776
- if (defined ( ' PHP_WINDOWS_VERSION_MAJOR ' ) ) {
776
+ if ('\\' === DIRECTORY_SEPARATOR ) {
777
777
$ this ->markTestSkipped ('chmod is not supported on Windows ' );
778
778
}
779
779
You can’t perform that action at this time.
0 commit comments