/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ public function testSetUp() { $this->object = new PdoMssqlComponent(); $this->object->setConfigById(4); $configArray = $this->object->getdbConfigArray(); $this->object->configConnection($configArray); $testFilePath = dirname(dirname(dirname(dirname(__FILE__)))) . '/testfiles/test.sql'; }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ public function testSetUp() { $this->object = new MysqlComponent(); $this->object->setConfigById(0); $testFilePath = dirname(dirname(dirname(dirname(__FILE__)))) . '/testfiles/test.sql'; //create test database // $mysqli = new mysqli("localhost", "root", "root"); // $mysqli->query("CREATE DATABASE airymvc_unit_test"); // $mysqli->select_db("airymvc_unit_test"); // $query = file_get_contents($testFilePath); // $mysqli->multi_query($query); // $mysqli->close(); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ public function testSetUp() { $this->object = new MssqlComponent(); $this->object->setConfigById(3); $testFilePath = dirname(dirname(dirname(dirname(__FILE__)))) . '/testfiles/test.sql'; }