Esempio n. 1
0
 public function testCanDeclareConfigurationFluently()
 {
     $glue = new Glue(new Configuration());
     $glue->setPaths(['cache' => 'storage/cache'])->setDefinitionProviders([new LeagueRouteDefinition()])->setMiddlewares([LeagueRouteMiddleware::class]);
     $this->assertEquals(['cache' => 'storage/cache'], $glue->getPaths());
     $this->assertEquals([LeagueRouteMiddleware::class], $glue->getMiddlewares());
     $this->assertEquals([new LeagueRouteDefinition()], $glue->getDefinitionProviders());
 }