Class ezSQL_pdoTest

Description

Test class for ezSQL_pdo.

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. The PDO tests where done with a PostgreSQL database, please use the scripts of PostgreSQL

  • author: Stefanie Janine Stoelting <mail@stefanie-stoelting.de>
  • name: ezSQL_pdoTest
  • uses: postgresql_test_db_tear_up.sql
  • license: FREE
  • uses: postgresql_test_db_tear_down.sql
  • uses: mysql_test_db_tear_down.sql
  • uses: ez_test.sqlite
  • uses: mysql_test_db_tear_up.sql

Located in /_Test/unit_tests/pdo/ezSQL_pdoTest.php (line 31)

PHPUnit_Framework_TestCase
   |
   --ezSQL_pdoTest
Class Constant Summary
TEST_DB_CHARSET = 'utf8'
TEST_DB_HOST = 'localhost'
TEST_DB_NAME = 'ez_test'
TEST_DB_PASSWORD = 'ezTest'
TEST_DB_PORT = '5432'
TEST_DB_USER = 'ez_test'
TEST_SQLITE_DB = '_Test/unit_tests/pdo/ez_test.sqlite'
Variable Summary
Method Summary
Variables
ezSQL_pdo $object (line 71)
  • access: protected
Methods
setUp (line 77)

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 85)

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

This method is called after a test is executed.

  • access: protected
void tearDown ()
testMySQLCatch_error (line 222)
  • access: public
void testMySQLCatch_error ()
testMySQLConnect (line 183)
  • access: public
void testMySQLConnect ()
testMySQLConnectWithOptions (line 253)
  • access: public
void testMySQLConnectWithOptions ()
testMySQLDisconnect (line 242)
  • access: public
void testMySQLDisconnect ()
testMySQLEscape (line 204)
  • access: public
void testMySQLEscape ()
testMySQLGet_set (line 264)
  • access: public
void testMySQLGet_set ()
testMySQLQuery (line 231)
  • access: public
void testMySQLQuery ()
testMySQLQuick_connect (line 190)
  • access: public
void testMySQLQuick_connect ()
testMySQLSelect (line 197)
  • access: public
void testMySQLSelect ()
testMySQLSysdate (line 215)
  • access: public
void testMySQLSysdate ()
testPosgreSQLCatch_error (line 131)
  • access: public
void testPosgreSQLCatch_error ()
testPosgreSQLConnect (line 92)
  • access: public
void testPosgreSQLConnect ()
testPosgreSQLDisconnect (line 151)
  • access: public
void testPosgreSQLDisconnect ()
testPosgreSQLEscape (line 113)
  • access: public
void testPosgreSQLEscape ()
testPosgreSQLQuery (line 140)
  • access: public
void testPosgreSQLQuery ()
testPosgreSQLQuick_connect (line 99)
  • access: public
void testPosgreSQLQuick_connect ()
testPosgreSQLSelect (line 106)
  • access: public
void testPosgreSQLSelect ()
testPosgreSQLSysdate (line 124)
  • access: public
void testPosgreSQLSysdate ()
testPostgreSQLGet_set (line 162)
  • access: public
void testPostgreSQLGet_set ()
testSQLiteCatch_error (line 324)
  • access: public
void testSQLiteCatch_error ()
testSQLiteConnect (line 285)
  • access: public
void testSQLiteConnect ()
testSQLiteDisconnect (line 344)
  • access: public
void testSQLiteDisconnect ()
testSQLiteEscape (line 306)
  • access: public
void testSQLiteEscape ()
testSQLiteGet_set (line 355)
  • access: public
void testSQLiteGet_set ()
testSQLiteQuery (line 333)
  • access: public
void testSQLiteQuery ()
testSQLiteQuick_connect (line 292)
  • access: public
void testSQLiteQuick_connect ()
testSQLiteSelect (line 299)
  • access: public
void testSQLiteSelect ()
testSQLiteSysdate (line 317)
  • access: public
void testSQLiteSysdate ()
Class Constants
TEST_DB_CHARSET = 'utf8' (line 56)

constant string database connection charset

TEST_DB_HOST = 'localhost' (line 51)

constant string database host

TEST_DB_NAME = 'ez_test' (line 46)

constant string database name

TEST_DB_PASSWORD = 'ezTest' (line 41)

constant string password

TEST_DB_PORT = '5432' (line 61)

constant string database port

TEST_DB_USER = 'ez_test' (line 36)

constant string user name

TEST_SQLITE_DB = '_Test/unit_tests/pdo/ez_test.sqlite' (line 66)

constant string path and file name of the SQLite test database

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