public function getBootstrapPath() { if ($path = $this->input->getOption('bootstrap')) { return $path; } if ($path = $this->config->getBootstrapPath()) { return $path; } return false; }
public function beforeSuite() { if ($bootstrap = $this->io->getBootstrapPath()) { if (!is_file($bootstrap)) { throw new \RuntimeException(sprintf("Bootstrap file '%s' does not exist", $bootstrap)); } require $bootstrap; } }