public function getCallByRequestId($requestId) { /* @var $registration \Thruway\Registration */ foreach ($this->registrations as $registration) { $call = $registration->getCallByRequestId($requestId); if ($call) { return $call; } } return false; }
public function testGetCallWithRequestIdFailure() { $call = $this->_proc->getCallByRequestId(0); $this->assertFalse($call); }