Changeset View
Changeset View
Standalone View
Standalone View
src/future/exec/__tests__/ExecFutureTestCase.php
Context not available. | |||||
->write($data) | ->write($data) | ||||
->resolvex(); | ->resolvex(); | ||||
$this->assertEqual(substr($data, 0, 1024), $stdout); | $this->assertEqual(@substr($data, 0, 1024), $stdout); | ||||
} | } | ||||
public function testResolveTimeoutTestShouldRunLessThan1Sec() { | public function testResolveTimeoutTestShouldRunLessThan1Sec() { | ||||
Context not available. | |||||
$bin, | $bin, | ||||
$input); | $input); | ||||
$stdout = explode("\n", $stdout); | $stdout = @explode("\n", $stdout); | ||||
$output = array(); | $output = array(); | ||||
foreach ($stdout as $line) { | foreach ($stdout as $line) { | ||||
$output[] = stripcslashes($line); | $output[] = stripcslashes($line); | ||||
Context not available. | |||||
do { | do { | ||||
$future->isReady(); | $future->isReady(); | ||||
list($read) = $future->read(); | list($read) = $future->read(); | ||||
if (strlen($read)) { | if (@strlen($read)) { | ||||
break; | break; | ||||
} | } | ||||
} while (true); | } while (true); | ||||
Context not available. | |||||
do { | do { | ||||
$future->isReady(); | $future->isReady(); | ||||
list($read) = $future->read(); | list($read) = $future->read(); | ||||
if (strlen($read)) { | if (@strlen($read)) { | ||||
break; | break; | ||||
} | } | ||||
} while (true); | } while (true); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0