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(); }