public function testRegisterDuplicateMethod() { $app = new App(); $app->foo(function () { return 'foo'; }); $app->foo(function () { return 'foo2'; }); }