8000 Fix tests · symfony/symfony@3251ed5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3251ed5

Browse files
committed
Fix tests
1 parent a68e9ca commit 3251ed5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Symfony/Component/Lock/Store/FlockStore.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ private function lock(Key $key, $blocking)
7575
);
7676

7777
// Silence error reporting
78-
set_error_handler(function () {});
78+
set_error_handler(function () {
79+
});
7980
if (!$handle = fopen($fileName, 'r')) {
8081
if ($handle = fopen($fileName, 'x')) {
8182
chmod($fileName, 0444);

src/Symfony/Component/Lock/Tests/Store/AbstractBlockingStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ abstract class AbstractBlockingStoreTest extends AbstractStoreTest
2929
*/
3030
public function testBlockingLocks()
3131
{
32-
if (PHP_VERSION_ID < 50600) {
32+
if (PHP_VERSION_ID < 50600 || defined('HHVM_VERSION_ID')) {
3333
$this->markTestSkipped('Php 5.5 does not keep resource in child forks');
3434

3535
return;

0 commit comments

Comments
 (0)
0