seregazhuk\PinterestBot\Api\Response::isEmpty PHP Method

isEmpty() public method

Checks if response is empty.
public isEmpty ( ) : boolean
return boolean
    public function isEmpty()
    {
        return empty($this->getResponseData());
    }

Usage Example

コード例 #1
0
 /** @test */
 public function it_should_check_responses_with_data()
 {
     $response = new Response();
     $response->fill($this->createSuccessApiResponse());
     $this->assertFalse($response->isEmpty());
 }