public function setUp() { $options = array('dbname' => 'goez_test', 'host' => '127.0.0.1', 'username' => 'www', 'password' => '123456'); $this->_db = \Goez\Db::factory('mysql', $options); $this->_insertName = 'insert' . time(); }
/** * @expectedException Exception */ public function testFactoryFail() { $db = \Goez\Db::factory(null); // Exception }