Example #1
0
 /**
  * setPrefix description
  *
  * @param  string
  * @param  string
  * @param  string
  *
  * @return  string  setPrefixReturn
  *
  * @since  2.0
  */
 public function testSetPrefix()
 {
     $this->setUp();
     $this->collection->addPath('windwalker/dir/foo/bar', 'foo');
     $this->collection->addPath('windwalker/dir/yoo/hoo', 'yoo');
     $this->collection->setPrefix('/var/www');
     $expects = array(Path::clean('/var/www/windwalker/dir/foo/bar'), Path::clean('/var/www/windwalker/dir/yoo/hoo'));
     $paths = array((string) $this->collection->getPath('foo'), (string) $this->collection->getPath('yoo'));
     $this->assertEquals($paths, $expects);
 }