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