コード例 #1
0
ファイル: unit-calls.php プロジェクト: robtro/php-bandwidth
 public function testGatherGet()
 {
     $call = new Catapult\Call();
     $params = new Catapult\Parameters();
     $params->setFrom(new Catapult\PhoneNumber(__DEFAULT_SENDER__));
     $params->setTo(new Catapult\PhoneNumber(__DEFAULT_RECEIVER__));
     $call->create($params);
     $call->wait();
     $gather = new Catapult\Gather($call->id);
     $params->setReason("max-digits");
     $params->setDigits("123");
     $gather->create($params);
     $retgather = $gather->get($gather->id);
     $this->assertEquals($gather->digits, $retgather->digits);
 }
コード例 #2
0
ファイル: unit-gather.php プロジェクト: robtro/php-bandwidth
 public function testGatherGet()
 {
     $gather = new Catapult\Gather();
     $gather->get("g-id");
     $this->assertEqual($gather->id, "g-id");
 }