public function testDestroy() { // First call returns true when the queue exists $this->assertTrue($this->provider->destroy()); // Second call catches exception and returns true when the queue // does not exists $this->assertTrue($this->provider->destroy()); // Last call throws an exception if there is an exception outside // of a HTTP 404 $this->setExpectedException('Exception'); $this->provider->destroy(); }
public function testDestroy() { $this->assertTrue($this->provider->destroy()); }