public function it_should_throw_a_Not_found_exception_when_the_response_is_a_404() { $client = new Client(); $mock = new Mock([new Response(404)]); $client->getemitter()->attach($mock); $this->beConstructedWith($client, $this->getDefaultConfigArray()); $this->shouldThrow('Flubit\\NotFoundException')->during('get', ['account/ss']); }