@@ -54,7 +54,7 @@ public function tearDown(): void
5454
5555 protected function newApp (string $ name , string $ version = '' )
5656 {
57- $ app = new Application ($ name , $ version ?: '0.0.1 ' , fn () => false );
57+ $ app = @ new Application ($ name , $ version ?: '0.0.1 ' , fn () => false );
5858
5959 return $ app ->io (new Interactor (static ::$ in , static ::$ ou ));
6060 }
@@ -90,19 +90,19 @@ protected function removeColors(string $str): string
9090
9191 public function testConfigIndexRootNotSet ()
9292 {
93- $ app = $ this ->newApp ('test ' , '0.0.1 ' );
93+ $ app = @ $ this ->newApp ('test ' , '0.0.1 ' );
9494 $ app ->add (new RouteCommand ([]));
95- $ app ->handle (['runway ' , 'routes ' ]);
95+ @ $ app ->handle (['runway ' , 'routes ' ]);
9696
9797 $ this ->assertStringContainsString ('index_root not set in .runway-config.json ' , file_get_contents (static ::$ ou ));
9898 }
9999
100100 public function testGetRoutes ()
101101 {
102- $ app = $ this ->newApp ('test ' , '0.0.1 ' );
102+ $ app = @ $ this ->newApp ('test ' , '0.0.1 ' );
103103 $ this ->createIndexFile ();
104104 $ app ->add (new RouteCommand (['index_root ' => 'tests/commands/index.php ' ]));
105- $ app ->handle (['runway ' , 'routes ' ]);
105+ @ $ app ->handle (['runway ' , 'routes ' ]);
106106
107107 $ this ->assertStringContainsString ('Routes ' , file_get_contents (static ::$ ou ));
108108 $ expected = <<<'output'
@@ -125,10 +125,10 @@ public function testGetRoutes()
125125
126126 public function testGetPostRoute ()
127127 {
128- $ app = $ this ->newApp ('test ' , '0.0.1 ' );
128+ $ app = @ $ this ->newApp ('test ' , '0.0.1 ' );
129129 $ this ->createIndexFile ();
130130 $ app ->add (new RouteCommand (['index_root ' => 'tests/commands/index.php ' ]));
131- $ app ->handle (['runway ' , 'routes ' , '--post ' ]);
131+ @ $ app ->handle (['runway ' , 'routes ' , '--post ' ]);
132132
133133 $ this ->assertStringContainsString ('Routes ' , file_get_contents (static ::$ ou ));
134134
0 commit comments