public function testCreate() { $this->assertFalse($this->provider->queueExists()); $stub = $this->provider->getCache(); $stub->expects($this->once())->method('contains')->will($this->returnValue(true)); $this->assertTrue($this->provider->queueExists()); $this->assertTrue($this->provider->create()); $this->assertTrue($this->provider->queueExists()); $provider = $this->getIronMqProvider(['subscribers' => [['protocol' => 'email', 'endpoint' => '*****@*****.**']]]); $this->setExpectedException('InvalidArgumentException'); $provider->create(); }