listPathMappings() public method

Lists all filesystem path to repository path mappings of this mapping.
public listPathMappings ( ) : string[]
return string[] An array of repository paths with their corresponding filesystem paths as keys. If the mapping has multiple filesystem paths, then repository paths may occur multiple times in the returned array.
Example #1
0
 public function testLoadReferencesToOtherPackage()
 {
     $mapping = new PathMapping('/path', '@vendor/package2:resources');
     $this->assertSame(array('@vendor/package2:resources'), $mapping->getPathReferences());
     $this->assertFalse($mapping->isLoaded());
     $mapping->load($this->package1, $this->packages);
     $this->assertSame(array('@vendor/package2:resources'), $mapping->getPathReferences());
     $this->assertSame(array($this->packageDir2 . '/resources'), $mapping->getFilesystemPaths());
     $this->assertSame(array($this->packageDir2 . '/resources' => '/path', $this->packageDir2 . '/resources/config' => '/path/config', $this->packageDir2 . '/resources/config/config.yml' => '/path/config/config.yml', $this->packageDir2 . '/resources/css' => '/path/css', $this->packageDir2 . '/resources/css/style.css' => '/path/css/style.css'), $mapping->listPathMappings());
     $this->assertSame(array('/path', '/path/config', '/path/config/config.yml', '/path/css', '/path/css/style.css'), $mapping->listRepositoryPaths());
     $this->assertSame(array(), $mapping->getLoadErrors());
     $this->assertSame($this->package1, $mapping->getContainingPackage());
     $this->assertTrue($mapping->isLoaded());
 }