/** * Set/get landscape orientation */ public function testOrientationLandscape() { // Section Settings $oSettings = new Section(); $oSettings->setLandscape(); $this->assertEquals('landscape', $oSettings->getOrientation()); $this->assertEquals(16838, $oSettings->getPageSizeW()); $this->assertEquals(11906, $oSettings->getPageSizeH()); }
/** * Set/get landscape orientation */ public function testOrientationLandscape() { // Section Settings $oSettings = new Section(); $oSettings->setLandscape(); $this->assertEquals('landscape', $oSettings->getOrientation()); $this->assertEquals(Section::DEFAULT_HEIGHT, $oSettings->getPageSizeW()); $this->assertEquals(Section::DEFAULT_WIDTH, $oSettings->getPageSizeH()); }