public function prepare(ExampleNode $example, Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators) { $this->errorHandler = set_error_handler(array($this, 'errorHandler'), $this->errorLevel); }