class CacheTest in Auth0 Single Sign On 8.2
Hierarchy
- class \Auth0\Tests\Helpers\Cache\CacheTest extends \Auth0\Tests\Helpers\Cache\PHPUnit_Framework_TestCase
Expanded class hierarchy of CacheTest
File
- vendor/
auth0/ auth0-php/ tests/ Helpers/ Cache/ CacheTest.php, line 7
Namespace
Auth0\Tests\Helpers\CacheView source
class CacheTest extends \PHPUnit_Framework_TestCase {
public function testNoCache() {
$cache = new NoCacheHandler();
$this
->assertNull($cache
->get('pepe'));
$cache
->set('pepe', 'lala');
$this
->assertNull($cache
->get('pepe'));
$cache
->delete('pepe');
$this
->assertNull($cache
->get('pepe'));
}
public function testFileSystemCache() {
$cache = new FileSystemCacheHandler();
$this
->assertNull($cache
->get('pepe'));
$cache
->set('pepe', 'lala');
$this
->assertEquals('lala', $cache
->get('pepe'));
$cache
->delete('pepe');
$this
->assertNull($cache
->get('pepe'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheTest:: |
public | function | ||
CacheTest:: |
public | function |