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 @@ -560,6 +560,6 @@ private function getSchemeAndHierarchy($filename)
560
560
{
561
561
$ components = explode (':// ' , $ filename , 2 );
562
562
563
- return 2 === count ($ components ) ? array ($ components [0 ], $ components [1 ]) : array (null , $ components [0 ]);
563
+ return 2 === count ($ components ) ? array ($ components [0 ], $ components [1 ]) : array (null , $ components [0 ]);
564
564
}
565
565
}
Original file line number Diff line number Diff line change @@ -1045,7 +1045,7 @@ public function testTempnamOnUnwritableFallsBackToSysTmp()
1045
1045
$ this ->assertFileExists ($ filename );
1046
1046
1047
1047
// Tear down
1048
- unlink ($ filename );
1048
+ @ unlink ($ filename );
1049
1049
}
1050
1050
1051
1051
public function testDumpFile ()
@@ -1104,6 +1104,10 @@ public function testDumpFileOverwritesAnExistingFile()
1104
1104
1105
1105
public function testDumpFileWithFileScheme ()
1106
1106
{
1107
+ if (defined ('HHVM_VERSION ' )) {
1108
+ $ this ->markTestSkipped ('HHVM does not handle the file:// scheme correctly ' );
1109
+ }
1110
+
1107
1111
$ scheme = 'file:// ' ;
1108
1112
$ filename = $ scheme .$ this ->workspace .DIRECTORY_SEPARATOR .'foo ' .DIRECTORY_SEPARATOR .'baz.txt ' ;
1109
1113
You can’t perform that action at this time.
0 commit comments