public function run() { // Get and instantiate the reporter class, load files $reporterClass = self::$console->getReporterClass(); $this->reporter = new $reporterClass(self::$console); $this->reporter->beforeRun(); foreach ($this->suites as $suite) { $this->runSuite($suite); } $this->reporter->afterRun(); if (self::$console->options['watch']) { $this->watch(); } }