public function ApcCacheTest::testCache

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Cache/ApcCacheTest.php, line 28

Class

ApcCacheTest
@group integration

Namespace

Assetic\Test\Cache

Code

public function testCache() {
  $cache = new ApcCache();
  $this
    ->assertFalse($cache
    ->has('foo'));
  $cache
    ->set('foo', 'bar');
  $this
    ->assertEquals('bar', $cache
    ->get('foo'));
  $this
    ->assertTrue($cache
    ->has('foo'));
  $cache
    ->remove('foo');
  $this
    ->assertFalse($cache
    ->has('foo'));
}