public function getPathMappings()
{
$this->assertMappingsLoaded();
$mappings = array();
foreach ($this->mappings->toArray() as $mappingsByModule) {
foreach ($mappingsByModule as $mapping) {
$mappings[] = $mapping;
}
}
return $mappings;
}
public function testGetPathMappings() { $this->initDefaultManager(); $this->rootPackageFile->addPathMapping($mapping1 = new PathMapping('/path', 'resources')); $this->packageFile1->addPathMapping($mapping2 = new PathMapping('/path', 'resources')); $this->packageFile2->addPathMapping($mapping3 = new PathMapping('/path', 'resources')); $this->assertEquals(array($mapping1, $mapping2, $mapping3), $this->manager->getPathMappings()); }