izzum\statemachine\loader\YAMLTest::shouldBehave PHP Method

shouldBehave() public method

public shouldBehave ( )
    public function shouldBehave()
    {
        $machine = new StateMachine(new Context(new Identifier('yaml-test', 'test-machine')));
        $loader = YAML::createFromFile(__DIR__ . '/../../../../assets/yaml/example.yaml');
        $count = $loader->load($machine);
        $this->assertContains('bdone', $loader->getYAML());
        $this->assertContains('YAML', $loader->toString());
        $this->assertContains('YAML', $loader . '', '__toString()');
    }