public function testSkip() { $app = new \momentphp\App([\momentphp\test\bundles\first\Bundle::class => ['alias' => 'first', 'skipResource' => ['routes']], \momentphp\test\bundles\second\Bundle::class => ['alias' => 'second', 'skipResource' => ['routes']], \momentphp\test\bundles\third\Bundle::class => ['alias' => 'third', 'skipClass' => 'classes'], \momentphp\test\app\Bundle::class => ['alias' => 'app', 'skipResource' => ['routes']]]); $app->booted = true; $app->registerRoutes(); $cl = $app->bundleClass('classes\\Animal'); $animal = new $cl(); $this->assertEquals('zebra from second bundle', $animal->makeNoise()); $res = $app->visit('/animal'); $this->assertEquals('monkey from third bundle', (string) $res->getBody()); }