expectOutputString('hello world'); Flight::start(); } public function testMultipleRoutes() { Flight::route('GET /', function () { echo 'hello world'; }); Flight::route('GET /test', function () { echo 'test'; }); $this->expectOutputString('test'); $_SERVER['REQUEST_URI'] = '/test'; Flight::start(); } public function testMultipleStartsSingleRoute() { Flight::route('GET /', function () { echo 'hello world'; }); $this->expectOutputString('hello worldhello world'); Flight::start(); Flight::start(); } public function testMultipleStartsMultipleRoutes() { Flight::route('GET /', function () { echo 'hello world'; }); Flight::route('GET /test', function () { echo 'test'; }); $this->expectOutputString('testhello world'); $_SERVER['REQUEST_URI'] = '/test'; Flight::start(); $_SERVER['REQUEST_URI'] = '/'; Flight::start(); } }