Skip to content

Commit f6771a8

Browse files
committed
Fixed failing test for HHVM
1 parent b8e304b commit f6771a8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Symfony/Component/Filesystem/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,6 @@ private function getSchemeAndHierarchy($filename)
560560
{
561561
$components = explode('://', $filename, 2);
562562

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]);
564564
}
565565
}

src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ public function testTempnamOnUnwritableFallsBackToSysTmp()
10451045
$this->assertFileExists($filename);
10461046

10471047
// Tear down
1048-
unlink($filename);
1048+
@unlink($filename);
10491049
}
10501050

10511051
public function testDumpFile()
@@ -1104,6 +1104,10 @@ public function testDumpFileOverwritesAnExistingFile()
11041104

11051105
public function testDumpFileWithFileScheme()
11061106
{
1107+
if (defined('HHVM_VERSION')) {
1108+
$this->markTestSkipped('HHVM does not handle the file:// scheme correctly');
1109+
}
1110+
11071111
$scheme = 'file://';
11081112
$filename = $scheme.$this->workspace.DIRECTORY_SEPARATOR.'foo'.DIRECTORY_SEPARATOR.'baz.txt';
11091113

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy