Example #1
0
 public function testGatherStop()
 {
     $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);
     $gather = new Catapult\Gather($call->id);
     $params->setReason("max-digits");
     $params->setDigits("123");
     $gather->create($params);
     $gather->stop();
     $this->assertEquals($gather->state, Catapult\GATHER_STATES::completed);
 }
Example #2
0
 public function testGatherGet()
 {
     $gather = new Catapult\Gather();
     $gather->get("g-id");
     $this->assertEqual($gather->id, "g-id");
 }