/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $Database = new \mysqli(TEST_DB_HOST, TEST_DB_USER, TEST_DB_PASSWORD, TEST_DB); $this->object = new Table($Database); $sSql = "INSERT INTO `dim_table` (`id`, `table_name`) VALUES (1, 'test_table')"; $this->object->getDbConnection()->query($sSql); }