GuzzleHttp\Handler\MockHandler::count PHP 메소드

count() 공개 메소드

Returns the number of remaining items in the queue.
public count ( ) : integer
리턴 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');
     }
 }