/**
  * @dataProvider getPathProvider
  *
  * @param AbstractShape $shape
  * @param Path|PathElement[] $path
  */
 public function testGetPath($shape, $path)
 {
     if ($path instanceof Path) {
         $this->assertSame($path, $shape->getPath());
     } else {
         $this->assertEquals($path, $shape->getPath()->getElements());
     }
 }
 /**
  * @param SimpleXMLElement $svg
  * @param AbstractShape $shape
  * @param float $yBase
  *
  * @return SimpleXMLElement
  * @throws \Exception
  */
 private function addShape(SimpleXMLElement $svg, AbstractShape $shape, $yBase)
 {
     $path = $this->addPath($svg, $shape->getPath(), $yBase);
     $this->addShapeStyle($path, $shape);
     return $path;
 }