Автор: Oliver Tischlinger
Наследование: extends Metabor\Observer\Subject, implements MetaborStd\Event\EventInterface, implements ArrayAccess, implements MetaborStd\MetadataInterface
Пример #1
0
 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');
 }