'1']; $_REQUEST['t_h'] = [1 => '1']; $_REQUEST['t_x'] = [1 => '10']; $_REQUEST['t_y'] = [1 => '10']; $_POST['t_db'] = ['test_db']; $_POST['t_tbl'] = ['test_table']; $GLOBALS['server'] = 1; $GLOBALS['db'] = 'test_db'; $GLOBALS['cfg']['Server']['DisableIS'] = true; $this->object = new EpsRelationSchema('test_db'); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown(): void { parent::tearDown(); unset($this->object); } /** * Test for construct * * @group medium */ public function testConstructor(): void { $this->assertEquals(33, $this->object->getPageNumber()); $this->assertTrue($this->object->isShowColor()); $this->assertTrue($this->object->isShowKeys()); $this->assertTrue($this->object->isTableDimension()); $this->assertTrue($this->object->isAllTableSameWidth()); $this->assertEquals('L', $this->object->getOrientation()); } /** * Test for setPageNumber * * @group medium */ public function testSetPageNumber(): void { $this->object->setPageNumber(33); $this->assertEquals(33, $this->object->getPageNumber()); } }