Class ezSQL_mysqlTest

Description

Test class for ezSQL_mysql.

Generated by PHPUnit

Needs database tear up to run test, that creates database and a user with appropriate rights. Run database tear down after tests to get rid of the database and the user.

  • author: Stefanie Janine Stoelting <mail@stefanie-stoelting.de>
  • name: ezSQL_mysql_tear_up
  • license: FREE
  • uses: mysql_test_db_tear_down.sql
  • uses: mysql_test_db_tear_up.sql

Located in /_Test/unit_tests/mysql/ezSQL_mysqlTest.php (line 22)

PHPUnit_Framework_TestCase
   |
   --ezSQL_mysqlTest
Class Constant Summary
TEST_DB_CHARSET = 'utf8'
TEST_DB_HOST = 'localhost'
TEST_DB_NAME = 'ez_test'
TEST_DB_PASSWORD = 'ezTest'
TEST_DB_USER = 'ez_test'
Variable Summary
Method Summary
void setUp ()
void tearDown ()
void testConnect ()
void testDisconnect ()
void testEscape ()
void testGetCharset ()
void testGetDBHost ()
void testGetInsertId ()
void testQueryInsert ()
void testQuerySelect ()
void testSelect ()
void testSysdate ()
Variables
ezSQL_mysql $object (line 52)
  • access: protected
Methods
setUp (line 58)

Sets up the fixture, for example, opens a network connection.

This method is called before a test is executed.

  • access: protected
void setUp ()
tearDown (line 66)

Tears down the fixture, for example, closes a network connection.

This method is called after a test is executed.

  • access: protected
void tearDown ()
testConnect (line 82)
  • access: public
void testConnect ()
testDisconnect (line 172)
  • access: public
void testDisconnect ()
testEscape (line 103)
  • access: public
void testEscape ()
testGetCharset (line 165)
  • access: public
void testGetCharset ()
testGetDBHost (line 158)
  • access: public
void testGetDBHost ()
testGetInsertId (line 181)
  • access: public
void testGetInsertId ()
testQueryInsert (line 119)
  • access: public
void testQueryInsert ()
testQuerySelect (line 132)
  • access: public
void testQuerySelect ()
testQuick_connect (line 73)
  • access: public
void testQuick_connect ()
testSelect (line 91)
  • access: public
void testSelect ()
testSysdate (line 112)
  • access: public
void testSysdate ()
Class Constants
TEST_DB_CHARSET = 'utf8' (line 47)

constant database connection charset

TEST_DB_HOST = 'localhost' (line 42)

constant database host

TEST_DB_NAME = 'ez_test' (line 37)

constant database name

TEST_DB_PASSWORD = 'ezTest' (line 32)

constant string password

TEST_DB_USER = 'ez_test' (line 27)

constant string user name

Documentation generated on Mon, 26 Aug 2013 23:22:22 +0200 by phpDocumentor 1.4.4