Example #1
0
 public function test_Exceptions_From_Http_Contain_Response_Body()
 {
     $client = new Yelp();
     $business_id = 'the-motel-bar-chicago';
     try {
         $business = $client->getBusiness($business_id);
     } catch (Exception $e) {
         $this->assertNotNull($e->getResponseBody());
     }
 }