public function testHasPathMapping() { $this->initDefaultManager(); $this->rootPackageFile->addPathMapping(new PathMapping('/path1', 'resources')); $this->packageFile1->addPathMapping(new PathMapping('/path2', 'resources')); $this->assertTrue($this->manager->hasPathMapping('/path1', 'vendor/root')); $this->assertTrue($this->manager->hasPathMapping('/path2', 'vendor/package1')); $this->assertFalse($this->manager->hasPathMapping('/path1', 'vendor/package1')); $this->assertFalse($this->manager->hasPathMapping('/path2', 'vendor/root')); $this->assertFalse($this->manager->hasPathMapping('/path3', 'vendor/root')); }