1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 18:13:00 +01:00

Tightening MockPlugin

This commit is contained in:
Michael Dowling 2013-08-27 21:59:02 -07:00
parent bad1f28eb8
commit c263151017

View File

@ -16,10 +16,10 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class MockPlugin extends AbstractHasDispatcher implements EventSubscriberInterface, \Countable
{
/** @var array Array of mock responses / exceptions */
protected $queue = [];
private $queue = [];
/** @var bool Whether or not to consume an entity body when a mock response is served */
protected $readBodies;
private $readBodies;
/**
* @param array $items Array of responses or exceptions to queue