private function exampleEvent(ExampleNode $node, $result = ExampleEvent::PASSED, $time = 0, $exceptionMessage = '') { return new ExampleEvent($node->getWrappedObject(), $time, $result, new \Exception($exceptionMessage)); }