mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-09 14:58:57 +02:00
[Nostromo] Refactor Tests
This commit is contained in:
@@ -74,7 +74,7 @@ class MageApplication extends Application
|
||||
$logger->pushHandler(new StreamHandler($logfile));
|
||||
}
|
||||
|
||||
$this->runtime = new Runtime();
|
||||
$this->runtime = $this->instantiateRuntime();
|
||||
$this->runtime->setConfiguration($config);
|
||||
$this->runtime->setLogger($logger);
|
||||
|
||||
@@ -105,4 +105,24 @@ class MageApplication extends Application
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Runtime instance to use
|
||||
*
|
||||
* @return Runtime
|
||||
*/
|
||||
protected function instantiateRuntime()
|
||||
{
|
||||
return new Runtime();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Runtime instance
|
||||
*
|
||||
* @return Runtime
|
||||
*/
|
||||
public function getRuntime()
|
||||
{
|
||||
return $this->runtime;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user