Fixed failing test for HHVM

This commit is contained in:
Pierre du Plessis 2015-10-12 17:04:38 +02:00
parent 61a3afd829
commit a17aa5e091
2 changed files with 6 additions and 2 deletions

View File

@ -565,6 +565,6 @@ class Filesystem
{ {
$components = explode('://', $filename, 2); $components = explode('://', $filename, 2);
return 2 === count($components) ? array($components[0], $components[1]) : array(null, $components[0]); return 2 === count($components) ? array($components[0], $components[1]) : array(null, $components[0]);
} }
} }

View File

@ -1047,7 +1047,7 @@ class FilesystemTest extends FilesystemTestCase
$this->assertFileExists($filename); $this->assertFileExists($filename);
// Tear down // Tear down
unlink($filename); @unlink($filename);
} }
public function testDumpFile() public function testDumpFile()
@ -1106,6 +1106,10 @@ class FilesystemTest extends FilesystemTestCase
public function testDumpFileWithFileScheme() public function testDumpFileWithFileScheme()
{ {
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('HHVM does not handle the file:// scheme correctly');
}
$scheme = 'file://'; $scheme = 'file://';
$filename = $scheme.$this->workspace.DIRECTORY_SEPARATOR.'foo'.DIRECTORY_SEPARATOR.'baz.txt'; $filename = $scheme.$this->workspace.DIRECTORY_SEPARATOR.'foo'.DIRECTORY_SEPARATOR.'baz.txt';