Unit test of Mysql::escapeString() function.
Method creates a valid Mysql object, sends a string to Mysql::escapeString() and checks that the string returned has been escaped. Then an invalid Mysql object is created and method checks that a Mysql_Exception is raised.
API Tags:
Unit test of Mysql::execute() function.
Method creates a valid Mysql object with a default db, sends a valid query and checks that it receives a Mysql_Result object. Then an invalid statement is sent and checks that a Mysql_Exception is raised.
API Tags:
Unit test of Mysql::prepare() function.
Method creates a valid Mysql object with a default db, and check that it receives a Mysql_Statement object. Then an invalid Mysql object with a default db is created and checks that a Mysql_Exception is raised.
API Tags:
Unit test of Mysql::selectDb() function.
Method creates a valid Mysql object without a default db, then attempts select a valid db and an invalid db.
API Tags:
void _createInvalidObject(
)
|
|
Create invalid Mysql object without a default db
This method uses the invalid password so access should be denied. Invalid connection stored in member var.
API Tags:
Information Tags:
void _createInvalidWithDB(
)
|
|
Create invalid Mysql object with a default db
This method uses the invalid db name so selecting the db should cause an error. Invalid connection stored in member var.
API Tags:
Information Tags:
void _createValidObject(
)
|
|
Create valid Mysql object without a default db and store in member var
API Tags:
Information Tags:
void _createValidWithDB(
)
|
|
Create valid Mysql object with a default db and store in member var
API Tags:
Information Tags: