aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-08-20 14:54:34 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-08-20 14:54:34 -0700
commit4c0fcda20c33b78d77fddee18cf7a07b6da65fe7 (patch)
treed95a81c2b82e1db61d6f411db972f99f3273fa0f /src/php
parent2e405d4123665f4b305e8cd022489fef8db098a1 (diff)
php: add tests for waitForReady
Diffstat (limited to 'src/php')
-rw-r--r--src/php/tests/generated_code/AbstractGeneratedCodeTest.php8
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);