Changeset View
Changeset View
Standalone View
Standalone View
src/future/exec/__tests__/ExecFutureTestCase.php
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | do { | ||||
list($read) = $future->read(); | list($read) = $future->read(); | ||||
if (strlen($read)) { | if (strlen($read)) { | ||||
break; | break; | ||||
} | } | ||||
} while (true); | } while (true); | ||||
// We expect to get the entire string back in the read. | // We expect to get the entire string back in the read. | ||||
$this->assertEqual($str_len_4, $read); | $this->assertEqual($str_len_4, $read); | ||||
// Remove the limit so we can resolve the future. | |||||
$future->setReadBufferSize(null); | |||||
$future->resolve(); | $future->resolve(); | ||||
} | } | ||||
} | } |