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); }
public function testGatherGet() { $gather = new Catapult\Gather(); $gather->get("g-id"); $this->assertEqual($gather->id, "g-id"); }