Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitdd39cb5

Browse files
committed
Travis runs PHP 7.2 with low deps
1 parent2fba420 commitdd39cb5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

‎.travis.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ addons:
1616
env:
1717
global:
1818
- MIN_PHP=7.1.3
19-
- SYMFONY_PROCESS_PHP_TEST_BINARY=~/.phpenv/versions/7.1/bin/php
19+
- SYMFONY_PROCESS_PHP_TEST_BINARY=~/.phpenv/shims/php
2020

2121
matrix:
2222
include:
2323
- php: 7.1.3
2424
- php: 7.1
2525
env: deps=high
26-
- php: 7.1
26+
- php: 7.2
2727
env: deps=low
28+
2829
fast_finish: true
2930

3031
cache:

‎src/Symfony/Component/Process/Tests/ProcessTest.php‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,14 @@ public function testStopWithTimeoutIsActuallyWorking()
117117
$p = $this->getProcess(array(self::$phpBin, __DIR__.'/NonStopableProcess.php', 30));
118118
$p->start();
119119

120-
while (false === strpos($p->getOutput(), 'received')) {
120+
while ($p->isRunning() &&false === strpos($p->getOutput(), 'received')) {
121121
usleep(1000);
122122
}
123+
124+
if (!$p->isRunning()) {
125+
throw new \LogicException('Process is not running: '.$p->getErrorOutput());
126+
}
127+
123128
$start = microtime(true);
124129
$p->stop(0.1);
125130

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp