public function testAddPage()
 {
     $pageExpected = new Page("Page 1");
     $cad = new Drawing();
     $pageGenerated = $cad->pages[$cad->addPage("Page 1")];
     $this->assertEquals($pageExpected, $pageGenerated);
 }
 public function exampleMultiplePagesWithDifferentOptions($filepath = "Examples/exampleMultiplePagesWithDifferentOptions.dxf")
 {
     $cad = new Drawing();
     $options1 = ["xLength" => 26.8, "yLength" => 7.5, "marginBottom" => 4.3, "marginLeft" => 3.3, "marginTop" => 2.3, "marginRight" => 1.3];
     $options2 = ["xLength" => 0.5, "yLength" => 0.5, "marginBottom" => 0.1, "marginLeft" => 0.1, "marginTop" => 0.1, "marginRight" => 0.1];
     $options3 = ["xLength" => 10.0, "yLength" => 15.0, "marginBottom" => 0.0, "marginLeft" => 2.0, "marginTop" => 0.0, "marginRight" => 2.0];
     $cad->addPage("The first page", $options1);
     $cad->addPage("The second page", $options2);
     $cad->addPage("The third page", $options3);
     $dxf = new DxfConverter($cad);
     $dxf->save($filepath);
 }