Пример #1
0
 /**
  * Tests the Joomla\Cache\Item class.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function testItem()
 {
     $this->assertEquals('foo', $this->instance->getKey());
     $this->assertNull($this->instance->getValue());
     $this->assertFalse($this->instance->isHit());
     $this->instance->setValue('bar');
     $this->assertEquals('bar', $this->instance->getValue());
     $this->assertTrue($this->instance->isHit());
 }