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

testLoadWithCustomStateAccessor() public method

    public function testLoadWithCustomStateAccessor()
    {
        $sa = $this->getMock('Finite\\State\\Accessor\\PropertyPathStateAccessor', array(), array(), 'CustomAccessor');
        $sm = new StateMachine();
        $sm->setStateAccessor($sa);
        $this->object->load($sm);
        $this->assertAttributeInstanceOf('CustomAccessor', 'stateAccessor', $sm);
    }