Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
izzum
statemachine
TransitionTest
jo
izzum\statemachine\TransitionTest::jo PHP Method
TransitionTest Class Documentation
Show file
Open project: rolfvreijdenberger/izzum-statemachine
jo()
public
method
scenario 7: wrap an existing method in a closure (this is THE way to reuse an existing method)
public
jo
(
$entity
)
function jo($entity) { $entity->setEntityId($entity->getEntityId() + 1); }
TransitionTest
jo
shouldAcceptMultipleCallableTypes
shouldBeAbleToCopy
shouldBeAllowedAndAbleToProcess
shouldExpectExceptionsWhenCallingPublicMethodsWithNonDefaultConstructorValues
shouldFailWithBadCallableDefinitions
shouldHaveBidirectionalAssociation
shouldNotBeAllowedToButAbleToProcess
shouldNotBeAllowedToTransitionByCallable
shouldReturnTrueRuleAndNullCommandWhenRuleEmpty
shouldSetBiDirectionalReferenceOnFromStateOnlyForInitialOrNormalStates
shouldThrowExceptionFromAppliedCommand
shouldThrowExceptionFromAppliedRule
shouldThrowExceptionWhenRuleAndCommandNotCreated
shouldTransitionWithCallable
shouldWorkWhenCallingPublicMethods
shouldWorkWhenCallingPublicMethodsWithNonDefaultConstructorValues
shouldWorkWhenCallingPublicMethodsWithOptionalConstructorParams
shouldWorkWhenUsingMultipleRules
shouldWorkWithMultipleCommands