Metabor\Statemachine\CommandTest::testWillThrowAnExcpetionIfObserverIsNotAnEvent PHP Метод

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

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