public function testInvalidStylesOption()
 {
     $this->setExpectedException(Error::CLASS, 'Encountered unexpected value type for "styles" option.' . ' Expected instance of Params\\Immutable\\ImmutableOptions');
     $state_machine_definition_file = __DIR__ . '/Fixture/state_machine.xml';
     $builder = new XmlStateMachineBuilder(['state_machine_definition' => $state_machine_definition_file, 'name' => 'video_transcoding']);
     $state_machine = $builder->build();
     $renderer = new DotGraphRenderer(['style' => 'not what you\'d expected hugh? :P']);
     $dot_code = $renderer->renderGraph($state_machine);
 }
 public function testMissingStateMachineName()
 {
     $this->setExpectedException(Error::CLASS, 'Missing required state machine name.');
     $builder = new XmlStateMachineBuilder(['state_machine_definition' => __DIR__ . '/Fixture/invalid_state_implementor.xml']);
     $builder->build();
 }
 /**
  * @param array $options with at least 'name' and 'state_machine_definition' keys set
  * @param ServiceLocatorInterface $service_locator
  */
 public function __construct(array $options, ServiceLocatorInterface $service_locator)
 {
     parent::__construct($options);
     $this->service_locator = $service_locator;
 }
 public function __construct(DiContainer $di_container, array $options = [])
 {
     parent::__construct($options);
     $this->di_container = $di_container;
 }