Skip to content

Commit a17aa5e

Browse files
committed
Fixed failing test for HHVM
1 parent 61a3afd commit a17aa5e

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
@@ -565,6 +565,6 @@ private function getSchemeAndHierarchy($filename)
565565
{
566566
$components = explode('://', $filename, 2);
567567

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]);
569569
}
570570
}

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

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

10491049
// Tear down
1050-
unlink($filename);
1050+
@unlink($filename);
10511051
}
10521052

10531053
public function testDumpFile()
@@ -1106,6 +1106,10 @@ public function testDumpFileOverwritesAnExistingFile()
11061106

11071107
public function testDumpFileWithFileScheme()
11081108
{
1109+
if (defined('HHVM_VERSION')) {
1110+
$this->markTestSkipped('HHVM does not handle the file:// scheme correctly');
1111+
}
1112+
11091113
$scheme = 'file://';
11101114
$filename = $scheme.$this->workspace.DIRECTORY_SEPARATOR.'foo'.DIRECTORY_SEPARATOR.'baz.txt';
11111115

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