protected function useTimeout() { $exception = new TimeoutException('timeout occurs'); $this->transport->expects($this->once())->method('receiveResponse')->will($this->throwException($exception)); return $exception; }