/** * Construct * @param string $name * Event name * @param \Gamegos\NoSql\Storage\StorageInterface $storage * Target storage * @param string $operation * Operation name * @param \Gamegos\NoSql\Storage\OperationArguments $arguments * Operation arguments * @param mixed $returnValue * Return value of the operation * @param \Exception $exception * Exception thrown in the operation */ public function __construct($name, StorageInterface $storage, $operation, OperationArguments $arguments, &$returnValue = null, Exception $exception = null) { parent::__construct($name, $storage); $this->setOperation($operation); $this->setArguments($arguments); if (null !== $returnValue) { $this->setReturnValue($returnValue); } if (null !== $exception) { $this->setException($exception); } }
public function testStopPropagation() { $event = new Event('foo', 'bar'); $event->stopPropagation(); $this->assertTrue($event->isPropagationStopped()); }