Esempio n. 1
0
 public function testLoad()
 {
     $services = $this->cache->load($this->servicePath)->getServices();
     $this->assertCount(1, $services);
     $this->assertArrayHasKey('foo', $services);
     $this->assertFileExists($this->cacheDir . '/' . md5($this->servicePath));
 }
Esempio n. 2
0
 private function getServices()
 {
     $serviceCache = new ServiceCache(new ServiceParser($this->config), $this->getCachePath() . '/internal');
     return $serviceCache->load(__DIR__ . '/../config/services.yml')->load($this->getConfigPath() . '/services.yml')->getServices();
 }