Class ezSQL_postgresqlTest

Description

Test class for ezSQL_postgresql.

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_postgresql_tear_up
  • license: FREE
  • uses: postgresql_test_db_tear_down.sql
  • uses: postgresql_test_db_tear_up.sql

Located in /_Test/unit_tests/postgresql/ezSQL_postgresqlTest.php (line 22)

PHPUnit_Framework_TestCase
   |
   --ezSQL_postgresqlTest
Class Constant Summary
TEST_DB_HOST = 'localhost'
TEST_DB_NAME = 'ez_test'
TEST_DB_PASSWORD = 'ezTest'
TEST_DB_PORT = '5432'
TEST_DB_USER = 'ez_test'
Variable Summary
Method Summary
void setUp ()
void tearDown ()
void testConnect ()
void testDescTable ()
void testDisconnect ()
void testEscape ()
void testGetDBHost ()
void testGetPort ()
void testQuery ()
void testSelect ()
void testShowTables ()
void testSysdate ()
Variables
ezSQL_postgresql $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 81)
  • access: public
void testConnect ()
testDescTable (line 124)
  • access: public
void testDescTable ()
testDisconnect (line 163)
  • access: public
void testDisconnect ()
testEscape (line 97)
  • access: public
void testEscape ()
testGetDBHost (line 172)
  • access: public
void testGetDBHost ()
testGetPort (line 179)
  • access: public
void testGetPort ()
testQuery (line 152)
  • access: public
void testQuery ()
testQuick_connect (line 73)
  • access: public
void testQuick_connect ()
testSelect (line 88)
  • access: public
void testSelect ()
testShowDatabases (line 140)
  • access: public
void testShowDatabases ()
testShowTables (line 113)
  • access: public
void testShowTables ()
testSysdate (line 106)
  • access: public
void testSysdate ()
Class Constants
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_PORT = '5432' (line 47)

constant database port

TEST_DB_USER = 'ez_test' (line 27)

constant string user name

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