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

shouldBehave() public method

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