Skip to content

Commit f01ca2f

Browse files
committed
Merge branch '4.4' into 4.5
2 parents 7abe779 + 9612396 commit f01ca2f

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ matrix:
1414
- php: hhvm
1515
- php: hhvm-nightly
1616

17+
sudo: false
18+
19+
before_install:
20+
- composer self-update
21+
1722
install:
1823
- travis_retry composer install --no-interaction --prefer-source
19-
- if [[ "$TRAVIS_PHP_VERSION" == hhvm* ]]; then echo -e '\nhhvm.libxml.ext_entity_whitelist = "file"' | sudo tee -a /etc/hhvm/php.ini; fi
2024

2125
script:
2226
- ./phpunit

tests/Regression/GitHub/1340.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ GH-1340: Process isolation blocks infinitely upon fatal error
44
<?php
55

66
$_SERVER['argv'][1] = '--no-configuration';
7-
$_SERVER['argv'][3] = 'Issue1340Test';
8-
$_SERVER['argv'][4] = dirname(__FILE__).'/1340/Issue1340Test.php';
7+
$_SERVER['argv'][2] = '-d';
8+
$_SERVER['argv'][3] = 'error_log=';
9+
$_SERVER['argv'][4] = 'Issue1340Test';
10+
$_SERVER['argv'][5] = dirname(__FILE__).'/1340/Issue1340Test.php';
911

1012
require __DIR__ . '/../../bootstrap.php';
1113
PHPUnit_TextUI_Command::main();

tests/Regression/GitHub/1340/Issue1340Test.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testLargeStderrOutputDoesNotBlock()
1818
// STDERR of a phpt test is not caught/validated at this point, so this
1919
// error output does not cause this test to fail.
2020
// @see https://github.com/sebastianbergmann/phpunit/issues/1169
21-
error_log("\n" . __FUNCTION__ . ": stderr:" . self::get4KB() . "\n", 4);
21+
error_log("\n" . __FUNCTION__ . ": stderr:" . self::get4KB() . "\n");
2222
$this->assertTrue(true);
2323
}
2424

@@ -27,7 +27,7 @@ public function testLargeStderrOutputDoesNotBlock()
2727
*/
2828
public function testLargeStderrOutputDoesNotBlockInIsolation()
2929
{
30-
error_log("\n" . __FUNCTION__ . ": stderr:" . self::get4KB() . "\n", 4);
30+
error_log("\n" . __FUNCTION__ . ": stderr:" . self::get4KB() . "\n");
3131
$this->assertTrue(true);
3232
}
3333

@@ -65,6 +65,6 @@ public function testFatalErrorDoesNotPass()
6565
public static function onShutdown()
6666
{
6767
echo "\nshutdown: stdout:", self::get4KB(), "\n";
68-
error_log("\nshutdown: stderr:" . self::get4KB(), 4);
68+
error_log("\nshutdown: stderr:" . self::get4KB());
6969
}
7070
}

tests/Regression/GitHub/1472.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
--TEST--
22
GH-1472: assertEqualXMLStructure modifies the tested elements
3+
--SKIPIF--
4+
<?php
5+
// See: https://github.com/facebook/hhvm/issues/4669
6+
if (defined('HHVM_VERSION')) {
7+
print 'skip: HHVM does not support cloning DOM nodes';
8+
}
9+
?>
310
--FILE--
411
<?php
512
$_SERVER['argv'][1] = '--no-configuration';

0 commit comments

Comments
 (0)