Metabor\Statemachine\CommandTest::testWillThrowAnExceptionIfCommandIsNotInvokable PHP Method

testWillThrowAnExceptionIfCommandIsNotInvokable() public method

    public function testWillThrowAnExceptionIfCommandIsNotInvokable()
    {
        $command = $this->createTestInstance();
        $subject = new Event('test');
        $subject->attach($command);
        $this->setExpectedException('\\Exception');
        $subject('foo', 'bar', 'baz');
    }