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

testLoadGraph() public method

public testLoadGraph ( )
    public function testLoadGraph()
    {
        $sm = $this->getMock('Finite\\StateMachine\\StateMachine');
        $graphName = 'foobar';
        $loader = new ArrayLoader(array('class' => 'Stateful1', 'graph' => $graphName), $this->callbackHandler);
        $sm->expects($this->once())->method('setGraph')->with($graphName);
        $loader->load($sm);
    }