/** * @dataProvider provideParents */ public function testGetParent($violationPath, $parentPath) { $path = new ViolationPath($violationPath); $parent = $parentPath === null ? null : new ViolationPath($parentPath); $this->assertEquals($parent, $path->getParent()); }