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)); }
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(); }