Metabor\Statemachine\CommandTest::testDelegatesUpdateFromEventToInvoke PHP Method

testDelegatesUpdateFromEventToInvoke() public method

    public function testDelegatesUpdateFromEventToInvoke()
    {
        $command = $this->createTestInstance(array('__invoke'));
        $subject = new Event('test');
        $subject->attach($command);
        $command->expects($this->once())->method('__invoke')->with('foo', 'bar', 'baz');
        $subject('foo', 'bar', 'baz');
    }