/** * Getting a response works correctly * * @test */ public function get_works_correctly() { $this->request->shouldReceive('get')->once()->andReturn($this->response); $response = $this->client->name('John')->get(); $this->assertInstanceOf('\\Pixelpeter\\Genderize\\Models\\GenderizeResponse', $response); }