diff --git a/spec/read-configuratoin.php b/spec/read-configuratoin.php index 9cbb0bf..45d7f7c 100644 --- a/spec/read-configuratoin.php +++ b/spec/read-configuratoin.php @@ -6,7 +6,9 @@ require_once __DIR__.'/../vendor/autoload.php'; describe('Reading configuration', function () { it('should check if file exists', function () { - expect(function () { readConfiguration(uniqid()); }) + expect(function () { + readConfiguration(uniqid()); + }) ->toThrow(new InvalidArgumentException()); }); @@ -16,7 +18,9 @@ describe('Reading configuration', function () { }); it('should report if YAML is invalid', function () { - expect(function () { readConfiguration(__DIR__.'/fixtures/read-configuration/invalid.json'); }) + expect(function () { + readConfiguration(__DIR__.'/fixtures/read-configuration/invalid.json'); + }) ->toThrow(new InvalidArgumentException()); }); }); diff --git a/src/application.php b/src/application.php index a07fdb0..3a61d69 100644 --- a/src/application.php +++ b/src/application.php @@ -84,7 +84,6 @@ $application->register('render') $renderer->display($graph); break; } - }); $application->run();