pho\Runner\Runner::run PHP 메소드

run() 공개 메소드

Starts the test runner by first invoking the associated reporter's beforeRun() method, then iterating over all defined suites and running their specs, and calling the reporter's afterRun() when complete.
public run ( )
    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();
        }
    }