php: add tests for waitForReady

pull/3017/head
Stanley Cheung 9 years ago
parent 2e405d4123
commit 4c0fcda20c
  1. 8
      src/php/tests/generated_code/AbstractGeneratedCodeTest.php

@ -39,6 +39,14 @@ abstract class AbstractGeneratedCodeTest extends PHPUnit_Framework_TestCase {
protected static $client; protected static $client;
protected static $timeout; protected static $timeout;
public function testWaitForNotReady() {
$this->assertFalse(self::$client->waitForReady(1));
}
public function testWaitForReady() {
$this->assertTrue(self::$client->waitForReady(250000));
}
public function testSimpleRequest() { public function testSimpleRequest() {
$div_arg = new math\DivArgs(); $div_arg = new math\DivArgs();
$div_arg->setDividend(7); $div_arg->setDividend(7);

Loading…
Cancel
Save