/** * @return ConfigInterface */ public function getConfig($package = null) { if (!array_key_exists($package, $this->cache)) { $path = $this->getWorkingDirectory($package) . DIRECTORY_SEPARATOR . 'resolver.json'; $this->cache[$package] = $this->configReader->read($path); } return $this->cache[$package]; }
/** * @covers PixelPolishers\Resolver\Config\Reader\AbstractReader::parseRepositories */ public function testParseRepositoriesWithMissingType() { // Arrange $reader = new Json(); // Act $result = $reader->read(__DIR__ . '/../../../ResolverTestAsset/missing-repository-type.json'); // Assert $this->assertCount(0, $result->getRepositories()); }