/** * @test */ public function can_dial_failed() { $mock = new PAGI\Client\Impl\MockedClientImpl($this->_properties); $mock->onDial(false, 'name', '123456', 20, 'CONGESTION', '#blah'); $result = $mock->dial('SIP/blah', array(60, 'tH')); $this->assertTrue($result->isCongestion()); $this->assertTrue($result->isResult(-1)); }