mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-08 22:38:56 +02:00
[Nostromo] Improve tests. Mess Detector recommendations.
This commit is contained in:
@@ -36,6 +36,17 @@ class MageApplicationTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
public function testParserError()
|
||||
{
|
||||
try {
|
||||
$application = new MageApplication();
|
||||
$application->configure(__DIR__ . '/Resources/invalid-yaml.yml');
|
||||
} catch (Exception $exception) {
|
||||
$this->assertTrue($exception instanceof RuntimeException);
|
||||
$this->assertEquals(sprintf('Error parsing the file "%s".', __DIR__ . '/Resources/invalid-yaml.yml'), $exception->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function testInvalidFile()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
magephp:
|
||||
environments:
|
||||
hosts:
|
||||
- host1
|
||||
- host2
|
||||
- host3
|
||||
Reference in New Issue
Block a user