public function testPrefix() { $path = new Path('/dir/base.ext'); $path->prefix('new-'); $this->assertEquals('/dir/new-base.ext', $path->name()); }