예제 #1
0
 /**
  * Retrieve uri for given code
  *
  * @param string $code
  * @return string
  */
 public function getUri($code)
 {
     return $this->directoryList->getUrlPath($code);
 }
 /**
  * @param array $config
  * @param string|bool $expected
  * @dataProvider getUrlPathDataProvider
  */
 public function testGetUrlPath($config, $expected)
 {
     $object = new DirectoryList('/root/dir', $config);
     $this->assertEquals($expected, $object->getUrlPath(DirectoryList::SYS_TMP));
 }