/**
  * Sets the current state
  *
  * @param   object
  * @return  void
  */
 public function setState($state)
 {
     $fqn = $this->_fully_qualified_namespace;
     $newState = is_string($state) ? ObjectResolverSingleton::make("{$fqn}\\{$state}", $this) : $state;
     $newState = $newState ?: ObjectResolverSingleton::make("{$state}", $this);
     $newState = $newState ?: $state;
     $this->_state = $newState;
 }
 public function test_it_gets_fully_qualified_namespace_for_real_class()
 {
     ObjectResolverSingleton::methods($this);
     $this->assertInstanceOf('StateMachine\\ObjectResolver', ObjectResolverSingleton::$instance);
 }