Example #1
0
    public function testGetDelayedThrowExceptionOnActiveStatement()
    {
        $this->assertTrue($this->_storage->setItem('key', 'value'));
        $this->assertTrue($this->_storage->getDelayed(array('key')));

        $this->setExpectedException('Zend\Cache\Exception\ExceptionInterface');
        $this->_storage->getDelayed(array('key'));
    }