entryAction() public method

An entry action will not be executed for an 'initial' state.
public entryAction ( Context $context )
$context Context
 /**
  * @test
  */
 public function shouldFailEntryAndExitWithNonCallable()
 {
     $state = new State('a');
     $context = new Context(new Identifier('123', 'foo-machine'));
     $event = 'foo';
     $callable = "Foo::BarEntry";
     $state->setEntryCallable($callable);
     $callable = "Foo::BarExit";
     $state->setExitCallable($callable);
     try {
         $state->entryAction($context);
         $this->fail('should not come here');
     } catch (Exception $e) {
         $this->assertEquals(Exception::CALLABLE_FAILURE, $e->getCode());
     }
     try {
         $state->exitAction($context);
         $this->fail('should not come here');
     } catch (Exception $e) {
         $this->assertEquals(Exception::CALLABLE_FAILURE, $e->getCode());
     }
 }
 /**
  * @test
  */
 public function shouldEnterWithCallable()
 {
     $state = new State('a');
     $context = new Context(new Identifier('123', 'foo-machine'));
     $event = 'foo';
     $callable = function ($entity) {
         $entity->setEntityId('234');
     };
     $state->setEntryCallable($callable);
     $this->assertEquals('123', $context->getEntityId());
     $state->exitAction($context);
     $this->assertEquals('123', $context->getEntityId());
     $state->entryAction($context);
     $this->assertEquals('234', $context->getEntityId());
 }