public function testGetters() { $this->assertInstanceOf('\\Phprest\\Config', $this->app->getConfiguration()); $this->assertInstanceOf('\\League\\Container\\ContainerInterface', $this->app->getContainer()); $this->assertInstanceOf('\\Phprest\\Router\\RouteCollection', $this->app->getRouter()); }
/** * Returns the DI container. * * @return \League\Container\ContainerInterface */ protected function getContainer() { return $this->app->getConfiguration()->getContainer(); }