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:
@@ -49,6 +49,17 @@ class RuntimeTest extends TestCase
|
||||
$this->assertEquals(0, count($config));
|
||||
}
|
||||
|
||||
public function testInvalidEnvironmentConfig()
|
||||
{
|
||||
$runtime = new RuntimeMockup();
|
||||
$runtime->setConfiguration(['environments' => ['valid' => []]]);
|
||||
$runtime->setInvalidEnvironment('invalid');
|
||||
$config = $runtime->getEnvironmentConfig();
|
||||
|
||||
$this->assertTrue(is_array($config));
|
||||
$this->assertEquals(0, count($config));
|
||||
}
|
||||
|
||||
public function testInvalidEnvironments()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user