Author: otischlinger
Inheritance: implements SplObserver
 /**
  *
  */
 public function testChangesStatusOnStatefulObjects()
 {
     $stateName = 'stateName';
     $state = new State($stateName);
     $process = new Process('process', $state);
     $stateMachine = new Statemachine($this, $process);
     $observer = new StatefulStatusChanger();
     $observer->update($stateMachine);
     $this->assertEquals($stateName, $this->currentStateName);
 }