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();
    }