PHP Class Jyxo\Spl\ObjectCacheTest

See also: Jyxo\Spl\ObjectCache
Author: Jan Pěček
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: jyxo/php

Public Methods

Method Description
testGetData ( ) Tests loading data.
testGetNull ( ) Tests loading an object that is not stored actually.
testIsset ( ) Tests isset().
testIterator ( ) Tests cache iterator interface.
testSaveData ( ) Tests saving data.
testUnset ( ) Tests unset().

Protected Methods

Method Description
setUp ( ) Prepares testing environment.
tearDown ( ) Cleans up the environment after testing.

Private Methods

Method Description
saveObject ( ) : stdClass Saves an object into cache.

Method Details

setUp() protected method

Prepares testing environment.
protected setUp ( )

tearDown() protected method

Cleans up the environment after testing.
protected tearDown ( )

testGetData() public method

Tests loading data.
public testGetData ( )

testGetNull() public method

Tests loading an object that is not stored actually.
public testGetNull ( )

testIsset() public method

Tests isset().
public testIsset ( )

testIterator() public method

Tests cache iterator interface.
public testIterator ( )

testSaveData() public method

Tests saving data.
public testSaveData ( )

testUnset() public method

Tests unset().
public testUnset ( )