Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27997f4

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)