PHP Class izzum\statemachine\TransitionTest

Author: rolf
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: rolfvreijdenberger/izzum-statemachine

Public Methods

Method Description
jo ( $entity ) scenario 7: wrap an existing method in a closure (this is THE way to reuse an existing method)
shouldAcceptMultipleCallableTypes ( )
shouldBeAbleToCopy ( )
shouldBeAllowedAndAbleToProcess ( )
shouldExpectExceptionsWhenCallingPublicMethodsWithNonDefaultConstructorValues ( )
shouldFailWithBadCallableDefinitions ( ) https://github.com/rolfvreijdenberger/izzum-statemachine/issues/7
shouldHaveBidirectionalAssociation ( )
shouldNotBeAllowedToButAbleToProcess ( )
shouldNotBeAllowedToTransitionByCallable ( )
shouldReturnTrueRuleAndNullCommandWhenRuleEmpty ( )
shouldSetBiDirectionalReferenceOnFromStateOnlyForInitialOrNormalStates ( )
shouldThrowExceptionFromAppliedCommand ( )
shouldThrowExceptionFromAppliedRule ( )
shouldThrowExceptionWhenRuleAndCommandNotCreated ( )
shouldTransitionWithCallable ( )
shouldWorkWhenCallingPublicMethods ( )
shouldWorkWhenCallingPublicMethodsWithNonDefaultConstructorValues ( )
shouldWorkWhenCallingPublicMethodsWithOptionalConstructorParams ( )
shouldWorkWhenUsingMultipleRules ( )
shouldWorkWithMultipleCommands ( )

Method Details

jo() public method

scenario 7: wrap an existing method in a closure (this is THE way to reuse an existing method)
public jo ( $entity )

shouldAcceptMultipleCallableTypes() public method

shouldBeAbleToCopy() public method

public shouldBeAbleToCopy ( )

shouldBeAllowedAndAbleToProcess() public method

shouldExpectExceptionsWhenCallingPublicMethodsWithNonDefaultConstructorValues() public method

shouldFailWithBadCallableDefinitions() public method

https://github.com/rolfvreijdenberger/izzum-statemachine/issues/7

shouldHaveBidirectionalAssociation() public method

shouldNotBeAllowedToButAbleToProcess() public method

shouldNotBeAllowedToTransitionByCallable() public method

shouldReturnTrueRuleAndNullCommandWhenRuleEmpty() public method

shouldSetBiDirectionalReferenceOnFromStateOnlyForInitialOrNormalStates() public method

shouldThrowExceptionFromAppliedCommand() public method

shouldThrowExceptionFromAppliedRule() public method

shouldThrowExceptionWhenRuleAndCommandNotCreated() public method

shouldTransitionWithCallable() public method

shouldWorkWhenCallingPublicMethods() public method

shouldWorkWhenCallingPublicMethodsWithNonDefaultConstructorValues() public method

shouldWorkWhenCallingPublicMethodsWithOptionalConstructorParams() public method

shouldWorkWhenUsingMultipleRules() public method

shouldWorkWithMultipleCommands() public method