File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/Symfony/Component/Filesystem Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -565,6 +565,6 @@ private function getSchemeAndHierarchy($filename)
565
565
{
566
566
$ components = explode (':// ' , $ filename , 2 );
567
567
568
- return 2 === count ($ components ) ? array ($ components [0 ], $ components [1 ]) : array (null , $ components [0 ]);
568
+ return 2 === count ($ components ) ? array ($ components [0 ], $ components [1 ]) : array (null , $ components [0 ]);
569
569
}
570
570
}
Original file line number Diff line number Diff line change @@ -1047,7 +1047,7 @@ public function testTempnamOnUnwritableFallsBackToSysTmp()
1047
1047
$ this ->assertFileExists ($ filename );
1048
1048
1049
1049
// Tear down
1050
- unlink ($ filename );
1050
+ @ unlink ($ filename );
1051
1051
}
1052
1052
1053
1053
public function testDumpFile ()
@@ -1106,6 +1106,10 @@ public function testDumpFileOverwritesAnExistingFile()
1106
1106
1107
1107
public function testDumpFileWithFileScheme ()
1108
1108
{
1109
+ if (defined ('HHVM_VERSION ' )) {
1110
+ $ this ->markTestSkipped ('HHVM does not handle the file:// scheme correctly ' );
1111
+ }
1112
+
1109
1113
$ scheme = 'file:// ' ;
1110
1114
$ filename = $ scheme .$ this ->workspace .DIRECTORY_SEPARATOR .'foo ' .DIRECTORY_SEPARATOR .'baz.txt ' ;
1111
1115
You can’t perform that action at this time.
0 commit comments