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