assertInstanceOf('Cake\Http\Response', $response); $this->assertInstanceOf('Cake\Network\Response', $response); $response = new HttpResponse(); $this->assertInstanceOf('Cake\Http\Response', $response); $this->assertInstanceOf('Cake\Network\Response', $response); } /** * Tests the Cake\Http\ServerRequest loaded from Cake\Network\Request correctly * * @return void */ public function testRequest() { $request = new NetworkRequest(); $this->assertInstanceOf('Cake\Http\ServerRequest', $request); $this->assertInstanceOf('Cake\Network\Request', $request); $request = new HttpRequest(); $this->assertInstanceOf('Cake\Http\ServerRequest', $request); $this->assertInstanceOf('Cake\Network\Request', $request); } }