Exemplo n.º 1
0
 /**
  * @return	null
  */
 public function testConstructRootPath()
 {
     /* empty string is allowed */
     $path = '';
     $dependency = new ClassDependency($path);
     $this->assertEquals($path, $dependency->getRootPath());
     /* any padding will be trimed */
     $path = ' /root/path';
     $dependency = new ClassDependency($path);
     $this->assertEquals(trim($path), $dependency->getRootPath());
     $path = "\t /root/path/ \t";
     $dependency = new ClassDependency($path);
     $this->assertEquals(trim($path), $dependency->getRootPath());
 }