Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f6771a8

Browse filesBrowse files
committed
Fixed failing test for HHVM
1 parent b8e304b commit f6771a8
Copy full SHA for f6771a8

File tree

2 files changed

+6
-2
lines changed
Filter options

2 files changed

+6
-2
lines changed

‎src/Symfony/Component/Filesystem/Filesystem.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Filesystem/Filesystem.php
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.