/** * @depends testIsCountable */ public function testCanClearQueue() { $plugin = new MockPlugin(); $plugin->addResponse(Response::fromMessage("HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n")); $plugin->clearQueue(); $this->assertEquals(0, count($plugin)); }
protected function setFixtureResponse($fixture) { $this->guzzleMockPlugin->clearQueue(); $this->addFixtureResponse($fixture); }