public function testMerge() { $this->object->addPath('tests', FIXTURES_ROOT); $this->object->addPath('tests', dirname($this->dir)); $collection = new PathCollection(array('tests' => array(FIXTURES_ROOT, $this->dir), 'another' => array($this->dir))); $this->object->merge($collection); $this->assertThat($this->object->getAll(), $this->equalTo(array(FIXTURES_ROOT, dirname($this->dir), $this->dir, $this->dir))); $this->assertThat($collection->getAll(), $this->equalTo(array(FIXTURES_ROOT, $this->dir, $this->dir))); }