Fixed failing test for HHVM
This commit is contained in:
parent
61a3afd829
commit
a17aa5e091
@ -565,6 +565,6 @@ class Filesystem
|
||||
{
|
||||
$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]);
|
||||
}
|
||||
}
|
||||
|
@ -1047,7 +1047,7 @@ class FilesystemTest extends FilesystemTestCase
|
||||
$this->assertFileExists($filename);
|
||||
|
||||
// Tear down
|
||||
unlink($filename);
|
||||
@unlink($filename);
|
||||
}
|
||||
|
||||
public function testDumpFile()
|
||||
@ -1106,6 +1106,10 @@ class FilesystemTest extends FilesystemTestCase
|
||||
|
||||
public function testDumpFileWithFileScheme()
|
||||
{
|
||||
if (defined('HHVM_VERSION')) {
|
||||
$this->markTestSkipped('HHVM does not handle the file:// scheme correctly');
|
||||
}
|
||||
|
||||
$scheme = 'file://';
|
||||
$filename = $scheme.$this->workspace.DIRECTORY_SEPARATOR.'foo'.DIRECTORY_SEPARATOR.'baz.txt';
|
||||
|
||||
|
Reference in New Issue
Block a user