Open Journal Systems  3.3.0
FileCacheTest Class Reference
Inheritance diagram for FileCacheTest:
PKPTestCase

Public Member Functions

 _cacheMiss ($cache, $id)
 
 testCacheMiss ()
 
 testGetCache ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Data Fields

 $cacheManager
 
 $cacheMisses
 
 $testCacheContents
 
- Data Fields inherited from PKPTestCase
 $mockedRegistryKeys = array()
 
 $registryBackup = array()
 

Protected Member Functions

 getCache ()
 
 setUp ()
 
- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 mockRequest ($path='index/test-page/test-op', $userId=null)
 
 setTestConfiguration ($config, $configPath='config')
 
 tearDown ()
 

Detailed Description

Tests for the FileCache class.

See also
Config

Definition at line 20 of file FileCacheTest.php.

Member Function Documentation

◆ _cacheMiss()

FileCacheTest::_cacheMiss (   $cache,
  $id 
)

Definition at line 99 of file FileCacheTest.php.

◆ getCache()

FileCacheTest::getCache ( )
protected

Return a test cache.

Definition at line 127 of file FileCacheTest.php.

Referenced by testCacheMiss(), and testGetCache().

◆ setUp()

FileCacheTest::setUp ( )
protected

Reimplemented from PKPTestCase.

Definition at line 112 of file FileCacheTest.php.

References CacheManager\getManager().

◆ testCacheMiss()

FileCacheTest::testCacheMiss ( )
See also
FileCache::get

Definition at line 73 of file FileCacheTest.php.

References getCache().

◆ testGetCache()

FileCacheTest::testGetCache ( )
See also
FileCache::get

Definition at line 44 of file FileCacheTest.php.

References getCache().

Field Documentation

◆ $cacheManager

$cacheManager FileCacheTest::$cacheManager

CacheManager

Definition at line 26 of file FileCacheTest.php.

◆ $cacheMisses

$cacheMisses FileCacheTest::$cacheMisses

int

Definition at line 32 of file FileCacheTest.php.

◆ $testCacheContents

FileCacheTest::$testCacheContents
Initial value:
= array(
0 => 'zero',
1 => 'one',
2 => 'two',
3 => 'three',
)

Definition at line 34 of file FileCacheTest.php.


The documentation for this class was generated from the following file: