Metabor\Statemachine\CommandTest::testWillThrowAnExcpetionIfObserverIsNotAnEvent PHP Method

testWillThrowAnExcpetionIfObserverIsNotAnEvent() public method

    public function testWillThrowAnExcpetionIfObserverIsNotAnEvent()
    {
        $command = $this->createTestInstance(array('__invoke'));
        $subject = new Subject();
        $subject->attach($command);
        $this->setExpectedException('\\Exception');
        $subject->notify();
    }