Phive\Queue\Tests\Queue\SysVQueueTest::testThrowExceptionOnMissingResource PHP Method

testThrowExceptionOnMissingResource() public method

    public function testThrowExceptionOnMissingResource($method)
    {
        // force a resource creation
        $this->queue->count();
        self::getHandler()->clear();
        try {
            // suppress notices/warnings triggered by msg_* functions
            // to avoid a PHPUnit_Framework_Error_Notice to be thrown
            @$this->callQueueMethod($this->queue, $method);
        } catch (NoItemAvailableException $e) {
        } catch (QueueException $e) {
            return;
        }
        $this->fail();
    }