PHP Class Medusa\Stack\PersistentStackTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostra file Open project: keyvanakbary/medusa

Public Methods

Method Description
firstInShouldBeFirstOut ( )
itShouldCountNumberOfElements ( $values, $expectedCount )
peekOnEmptyShouldThrowException ( )
popOnEmptyShouldThrowException ( )
popShouldNotAffectPreviousVersions ( )
popShouldRemoveHead ( )
provideStacksWithExpectedCount ( )
pushShouldAddNewHead ( )
pushShouldNotAffectPreviousVersions ( )

Private Methods

Method Description
assertValues ( array $values, Medusa\Stack\Stack $s )
createStack ( array $values )
popValues ( Medusa\Stack\Stack $stack )

Method Details

firstInShouldBeFirstOut() public method

itShouldCountNumberOfElements() public method

public itShouldCountNumberOfElements ( $values, $expectedCount )

peekOnEmptyShouldThrowException() public method

popOnEmptyShouldThrowException() public method

popShouldNotAffectPreviousVersions() public method

popShouldRemoveHead() public method

public popShouldRemoveHead ( )

provideStacksWithExpectedCount() public method

pushShouldAddNewHead() public method

pushShouldNotAffectPreviousVersions() public method