PHP Class PhpBench\Tests\Unit\Storage\Archiver\XmlArchiverTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: dantleech/phpbench

Public Methods

Method Description
setUp ( )
tearDown ( )
testArchiveCreateDirectory ( ) It should create the archive directory if it doesn't exist.
testArchiveExistingDirectoryDoNotCreate ( ) It should not create a directory if it already exists.
testArchiveSkipExisting ( ) It should skip existing archive history entries.
testRestore ( ) It should restore to storage.

Private Methods

Method Description
createFileInfo ( $path )
createHistoryEntry ( $identifier )

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testArchiveCreateDirectory() public method

It should create the archive directory if it doesn't exist.

testArchiveExistingDirectoryDoNotCreate() public method

It should not create a directory if it already exists.

testArchiveSkipExisting() public method

It should write non-existing archive entries.

testRestore() public method

It should skip existing records.
public testRestore ( )