[Nostromo] Refactor Tests

This commit is contained in:
Andrés Montañez
2017-01-04 21:46:40 -03:00
parent fa09553f7f
commit b56e1c378c
23 changed files with 640 additions and 1031 deletions
+21 -1
View File
@@ -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;
}
}