示例#1
0
 public function testAccept()
 {
     $call = new Catapult\Call();
     $calls = $call->listCalls();
     $last_incoming_call = $calls->find(array("direction" => "in"))->last();
     $last_incoming_call->accept();
     $call->accept();
     $call->wait();
     $this->assertEquals($call->check("state"), "active");
 }