예제 #1
0
    public function testIncrementItemsReturnsEmptyArrayIfNonWritable()
    {
        $this->_storage->setItem('key', 10);
        $this->_options->setWritable(false);

        $this->assertSame(array(), $this->_storage->incrementItems(array('key' => 5)));
        $this->assertEquals(10, $this->_storage->getItem('key'));
    }