コード例 #1
0
 public function testBuildRepositoryIgnoresOverrideOrderInNonRootPackage()
 {
     $this->initDefaultManager();
     $this->packageFile1->addPathMapping(new PathMapping('/path', 'resources'));
     $this->packageFile2 = new RootPackageFile('vendor/package2');
     $this->packageFile2->addPathMapping(new PathMapping('/path', 'override'));
     $this->packageFile2->setOverrideOrder(array('vendor/package1', 'vendor/package2'));
     // Update package file
     $this->packages->add(new Package($this->packageFile2, $this->packageDir2));
     $this->repo->expects($this->never())->method('add');
     $this->manager->buildRepository();
 }