private function getBoundaryStub($x, $y, $width, $height) { $boundaryMock = new \PHPPdf\Core\Boundary(); $points = array(Point::getInstance($x, $y), Point::getInstance($x + $width, $y), Point::getInstance($x + $width, $y - $height), Point::getInstance($x, $y - $height)); foreach ($points as $point) { $boundaryMock->setNext($point); } $boundaryMock->close(); return $boundaryMock; }