You are here

public function StateMachine_Test::log_callback in State Machine 7

Same name and namespace in other branches
  1. 6 tests/state_machine.test \StateMachine_Test::log_callback()
  2. 7.3 tests/state_machine.test \StateMachine_Test::log_callback()
  3. 7.2 tests/state_machine.test \StateMachine_Test::log_callback()
5 calls to StateMachine_Test::log_callback()
StateMachine_Test::log_after_transition in tests/state_machine.test
StateMachine_Test::log_before_transition in tests/state_machine.test
StateMachine_Test::log_on_enter in tests/state_machine.test
StateMachine_Test::log_on_exit in tests/state_machine.test
StateMachine_Test::log_on_guard in tests/state_machine.test

File

tests/state_machine.test, line 60

Class

StateMachine_Test

Code

public function log_callback($callback) {
  $this->logs[] = $callback;
}