/** * {@inheritdoc} */ public function _initialize() { $this->container = new Container(); $this->logger = new Logger('tests', $this->resolveHandlers()); $this->message = !empty($this->config['message']) ? $this->config['message'] : $this->defaultMessage; parent::_initialize(); }
public function _initialize() { parent::_initialize(); Annotation\AnnotationProvider::registerAnnotationNamespaces(); $outputDirectory = $this->getOutputDirectory(); $deletePreviousResults = $this->tryGetOption(DELETE_PREVIOUS_RESULTS_PARAMETER, false); $this->prepareOutputDirectory($outputDirectory, $deletePreviousResults); if (is_null(Model\Provider::getOutputDirectory())) { Model\Provider::setOutputDirectory($outputDirectory); } }
/** * Extra annotations to ignore in addition to standard PHPUnit annotations. * * @param array $ignoredAnnotations */ public function _initialize(array $ignoredAnnotations = []) { parent::_initialize(); Annotation\AnnotationProvider::registerAnnotationNamespaces(); // Add standard PHPUnit annotations Annotation\AnnotationProvider::addIgnoredAnnotations($this->ignoredAnnotations); // Add custom ignored annotations Annotation\AnnotationProvider::addIgnoredAnnotations($ignoredAnnotations); $outputDirectory = $this->getOutputDirectory(); $deletePreviousResults = $this->tryGetOption(DELETE_PREVIOUS_RESULTS_PARAMETER, false); $this->prepareOutputDirectory($outputDirectory, $deletePreviousResults); if (is_null(Model\Provider::getOutputDirectory())) { Model\Provider::setOutputDirectory($outputDirectory); } }