public function testSend() { $socket = new MockSocket(); $message = new Request(); $response = $socket->send($message, array('response' => 'lithium\\net\\http\\Response')); $this->assertTrue($response instanceof Response); $this->assertTrue($socket->data instanceof Request); }