コード例 #1
0
 /**
  * @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));
 }
コード例 #2
0
 protected function setFixtureResponse($fixture)
 {
     $this->guzzleMockPlugin->clearQueue();
     $this->addFixtureResponse($fixture);
 }