Tests/QueueFactoryTest.php
/**
     * @expectedException \Exception
     * @expectedExceptionMessage Unknown queue!
     */
@expectedException \Exception
@expectedExceptionMessage Unknown queue!
@expectedException \ Exception @expectedExceptionMessage Unknown queue!
public function testGetInvalidQueue()
    {
        $queueFactory = new QueueFactory($this->queueUrls, $this->queueDocuments);
        $queueFactory->getQueue('some unknown queue');
    }
public function testGetInvalidQueue ( ) { $ queueFactory = new QueueFactory ( $ this -> queueUrls , $ this -> queueDocuments ) ; $ queueFactory -> getQueue ( 'some unknown queue' ) ; }
@expectedException \Exception
 @expectedExceptionMessage Unknown queue!
@expectedException \ Exception @expectedExceptionMessage Unknown queue!