phpDocumentor MySQL
UnitTests
[ class tree: MySQL ] [ index: MySQL ] [ all elements ]

Class: Mysql_Statement_Test

Source Location: /unitTests/statement_test.php

Class Mysql_Statement_Test

Class Overview

Unit tests for Mysql_Statement class

Located in /unitTests/statement_test.php [line 37]

UnitTestCase
   |
   --Mysql_Statement_Test
Author(s): Information Tags:
Link:  http://albertfama.com/pkgs/distro/mysql/mysql.zip
Since:  File available since release .01 Alpha
Version:  1.0 (Stable)
License:  GNU GPL
Copyright:  2009 Albert Fama

Properties

Methods

[ Top ]
Property Summary
Mysql_Statement   $_db   Valid Mysql_Statement instance

[ Top ]
Method Summary
void   testAddRemoveBind()   Unit test of Mysql_Statement::addBind() and Mysql_Statement::removeBind() functions.
void   testExecute()   Unit test of Mysql_Statement::execute() function.
void   _setStatement()   Create valid Mysql object with a default db and store in member var

[ Top ]
Properties
Mysql_Statement   $_db [line 44]

Valid Mysql_Statement instance

API Tags:
Access:  protected


[ Top ]
Methods
testAddRemoveBind  [line 72]

  void testAddRemoveBind( )

Unit test of Mysql_Statement::addBind() and Mysql_Statement::removeBind() functions.

Tests the *Bind methods of the Mysql_Statement class. To check that the methods are working correctly method uses the Mysql_Statement::execute() method which will also test the Mysql_Statement::_bindParamToQuery() method.


API Tags:
Access:  public


[ Top ]
testExecute  [line 118]

  void testExecute( )

Unit test of Mysql_Statement::execute() function.

Method first adds bind parameters but also sends additional parmeters to the Mysql_Statement::execute() method. This will also test the Mysql_Statement::_mergeBind() and Mysql_Statement::_bindParamToQuery()method.


API Tags:
Access:  public
Uses:  Mysql_Test::_createValidObject()


[ Top ]
_setStatement  [line 51]

  void _setStatement( )

Create valid Mysql object with a default db and store in member var


API Tags:
Access:  protected


[ Top ]

Documentation generated on Mon, 15 Jun 2009 16:50:07 -0600 by phpDocumentor 1.3.0RC3