Ejemplo n.º 1
0
 public function testExtName()
 {
     $path = new Path('/dir/base.ext');
     $this->assertEquals('ext', $path->extName());
     $path->extName('jpg');
     $this->assertEquals('/dir/base.jpg', $path->name());
 }