/** * @test */ public function purges() { $this->ed->expects($this->once())->method('dispatch')->with(Events::PURGE); $this->innerqueue->expects($this->once())->method('purge')->will($this->returnValue(true)); $ret = $this->queue->purge(); $this->assertTrue($ret); }