Metabor\Statemachine\Factory\StatefulStateNameDetectorTest::testThrowsAnExscptionIfObjectIsNotStateful PHP Method

testThrowsAnExscptionIfObjectIsNotStateful() public method

    public function testThrowsAnExscptionIfObjectIsNotStateful()
    {
        $subject = new \stdClass();
        $detector = new StatefulStateNameDetector();
        $this->setExpectedException('\\InvalidArgumentException');
        $detector->detectCurrentStateName($subject);
    }