You are here

public function CacheTest::testFalseCastedValues in Plug 7

Check to see that, even if the user saves a value that can be interpreted as false, the cache adapter will still recognize its existence there.

@dataProvider falseCastedValuesProvider

2 calls to CacheTest::testFalseCastedValues()
MemcachedCacheTest::testFalseCastedValues in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcachedCacheTest.php
@dataProvider falseCastedValuesProvider
PredisCacheTest::testFalseCastedValues in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/PredisCacheTest.php
@dataProvider falseCastedValuesProvider
2 methods override CacheTest::testFalseCastedValues()
MemcachedCacheTest::testFalseCastedValues in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcachedCacheTest.php
@dataProvider falseCastedValuesProvider
PredisCacheTest::testFalseCastedValues in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/PredisCacheTest.php
@dataProvider falseCastedValuesProvider

File

lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php, line 283

Class

CacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testFalseCastedValues($value) {
  $cache = $this
    ->_getCacheDriver();
  $this
    ->assertTrue($cache
    ->save('key', $value));
  $this
    ->assertTrue($cache
    ->contains('key'));
  $this
    ->assertEquals($value, $cache
    ->fetch('key'));
}