public function testEquals() { $current = new Path(__FILE__); $cwd = new Path(getcwd()); $relative = new Path('.' . $current->makeRelativeTo($cwd)); $this->assertTrue($current->equals($relative)); // with virtual path $current = new Path('vfs://root/dir/file.ext'); $relative = new Path('vfs://root/file.ext'); $this->assertFalse($current->equals($relative)); $this->assertFalse($current->equals($cwd)); }