GuzzleHttp\Handler\MockHandler::count PHP Method

count() public method

Returns the number of remaining items in the queue.
public count ( ) : integer
return integer
    public function count()
    {
        return count($this->queue);
    }

Usage Example

 protected function tearDown()
 {
     if ($this->handler->count() > 0) {
         $this->fail('Not all responses were given');
     }
 }