/**
  * @depends testRouteMatchIsMutable
  */
 public function testRouteMatchIsNullable(ResourceEvent $event)
 {
     $event->setRouteMatch(null);
     $this->assertNull($event->getRouteMatch());
 }
 /**
  * Prepare event parameters
  *
  * Merges any event parameters set in the resources with arguments passed
  * to a resource method, and passes them to the `prepareArgs` method of the
  * event manager.
  *
  * @param  array $args
  * @return ArrayObject
  */
 protected function prepareEvent($name, array $args)
 {
     $event = new ResourceEvent($name, $this, $this->prepareEventParams($args));
     $event->setQueryParams($this->getQueryParams());
     $event->setRouteMatch($this->getRouteMatch());
     return $event;
 }