diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-08-20 14:54:34 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-08-20 14:54:34 -0700 |
commit | 4c0fcda20c33b78d77fddee18cf7a07b6da65fe7 (patch) | |
tree | d95a81c2b82e1db61d6f411db972f99f3273fa0f /src/php/tests/generated_code/AbstractGeneratedCodeTest.php | |
parent | 2e405d4123665f4b305e8cd022489fef8db098a1 (diff) |
php: add tests for waitForReady
Diffstat (limited to 'src/php/tests/generated_code/AbstractGeneratedCodeTest.php')
-rw-r--r-- | src/php/tests/generated_code/AbstractGeneratedCodeTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/php/tests/generated_code/AbstractGeneratedCodeTest.php b/src/php/tests/generated_code/AbstractGeneratedCodeTest.php index 8b7e67f57c..287621d930 100644 --- a/src/php/tests/generated_code/AbstractGeneratedCodeTest.php +++ b/src/php/tests/generated_code/AbstractGeneratedCodeTest.php @@ -39,6 +39,14 @@ abstract class AbstractGeneratedCodeTest extends PHPUnit_Framework_TestCase { protected static $client; protected static $timeout; + public function testWaitForNotReady() { + $this->assertFalse(self::$client->waitForReady(1)); + } + + public function testWaitForReady() { + $this->assertTrue(self::$client->waitForReady(250000)); + } + public function testSimpleRequest() { $div_arg = new math\DivArgs(); $div_arg->setDividend(7); |