public function testTimeout() { $this->useTimeout(5); $this->object->setTimeout(5); $this->setExpectedException('Wookieb\\ZorroRPC\\Exception\\TimeoutException', 'Timeout (5s) reached'); $this->socket->expects($this->once())->method('recvMulti')->will($this->returnValue(false)); $this->object->receiveResponse(); }