private function runSpecs(Suite $suite)
    {
        foreach ($suite->getSpecs() as $spec) {
            // If using the filter option, only run matching specs
            $pattern = self::$console->options['filter'];
            if ($pattern && !preg_match($pattern, $spec)) {
                continue;
            }

            $this->reporter->beforeSpec($spec);

            $this->runBeforeEachHooks($suite, $spec);
            $this->runRunnable($spec);
            $this->runAfterEachHooks($suite, $spec);

            $this->reporter->afterSpec($spec);
        }
    }