assertTrue(class_exists('MyController')); $this->expectOutputString('Doing something'); (new MyController)->index(); } public function testNamespaces(): void { Flight::path(__DIR__ . '/autoloading-example'); $this->assertTrue(class_exists('app\utils\ArrayHelperUtil')); $this->assertTrue(class_exists('app\controllers\MyController')); $this->expectOutputString('Doing something'); (new ArrayHelperUtil)->changeArrayCase([]); } }