Formatting output Plese Wait...

assert Class Reference
[Unit Testing]

This is the main Unit Testing Class that you will be using for unit testing operation. More...

Inheritance diagram for assert:

Inheritance graph
[legend]
Collaboration diagram for assert:

Collaboration graph
[legend]

Public Member Functions

 valid ($expVal, $errMsg=null, $file=null, $line=null)
 Result of the Test will be stored in a hard file.
 strict ($expVal, $errMsg=null, $file=null, $line=null)
 Result of the Test will be stored in a hard file But If the test fails your app will terminate and xyz(Unit test ID) Failed Error Message will be Fired on the Page.

Private Member Functions

 processTest ($assertItem, $isStrict)
 Process Test(s) Called by the other methods of the Class.

Detailed Description

This is the main Unit Testing Class that you will be using for unit testing operation.

you will use like.

Show Source
 assert::valid(($x==2), "X is not 2") 
You can also assiciate a Filename as well as a line number with it.
Show Source
 assert::valid(($x==2), "X is not 2", __FILE__, __LINE__) 
in PHP __FILE__ and __LINE__ exapands to the current filename and line number.

Definition at line 108 of file unit.php.


Member Function Documentation

assert::valid( boolean $expVal, string $errMsg = null, string $file = null, int $line = null )

assert::strict( boolean $expVal, string $errMsg = null, string $file = null, int $line = null )


The documentation for this class was generated from the following file:

Generated on Mon Oct 27 23:53:00 2008 for zigmoyd.kdevelop by doxygen 1.5.6
CompoundsX
Build Compounds List