Finite\Test\Loader\ArrayLoaderTest::testLoadWithProperties PHP Method

testLoadWithProperties() public method

    public function testLoadWithProperties()
    {
        $sm = new StateMachine();
        $this->object = new ArrayLoader(array('class' => 'Stateful1', 'states' => array('start' => array('type' => 'initial', 'properties' => array('foo' => true, 'bar' => false)), 'end' => array('type' => 'final')), 'transitions' => array('finish' => array('from' => array('middle'), 'to' => 'end', 'properties' => array('default' => 'default'), 'configure_properties' => function (OptionsResolver $optionsResolver) {
            $optionsResolver->setRequired('required');
        }))), $this->callbackHandler);
        $this->object->load($sm);
    }