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

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: dantleech/phpbench

Méthodes publiques

Méthode 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

Méthode Description
createFileInfo ( $path )
createHistoryEntry ( $identifier )

Method Details

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testArchiveCreateDirectory() public méthode

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

testArchiveExistingDirectoryDoNotCreate() public méthode

It should not create a directory if it already exists.

testArchiveSkipExisting() public méthode

It should write non-existing archive entries.

testRestore() public méthode

It should skip existing records.
public testRestore ( )