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