Esempio n. 1
0
 /**
  * @test
  */
 public function delegatesDecrementItems()
 {
     $keyValuePairs = [];
     $this->storage->decrementItems($keyValuePairs)->willReturn(true);
     $return = $this->cache->decrementItems($keyValuePairs);
     $this->assertTrue($return);
 }
Esempio n. 2
0
 public function testDecrementItemsReturnsEmptyArrayIfNonWritable()
 {
     $this->_storage->setItem('key', 10);
     $this->_options->setWritable(false);
     $this->assertSame(array(), $this->_storage->decrementItems(array('key' => 5)));
     $this->assertEquals(10, $this->_storage->getItem('key'));
 }
Esempio n. 3
0
 public function decrementItems(array $keyValuePairs)
 {
     return $this->storage->decrementItems($keyValuePairs);
 }