Metabor\Statemachine\StatemachineTest::testThrowsExcpetionIfCurrentStateDidNotHaveTriggeredEvent PHP Метод

testThrowsExcpetionIfCurrentStateDidNotHaveTriggeredEvent() публичный Метод

    public function testThrowsExcpetionIfCurrentStateDidNotHaveTriggeredEvent()
    {
        $statemachine = $this->createTestInstance();
        $this->setExpectedException('Metabor\\Statemachine\\Exception\\WrongEventForStateException');
        $statemachine->triggerEvent('foo');
    }