Go to the source code of this file.
Enumerations | |
enum | EL_LEVEL_0 |
enum | EL_LEVEL_1 |
enum | EL_LEVEL_2 |
enum | EL_LEVEL_3 |
enum | EL_LEVEL_4 |
enum | ECAT_DIAGNOSTIC |
Functions | |
assertLog ($condition_, $errLevel_, $errCategory_, $subject_, $variables_=array()) | |
Enter description here. |
Create a common interface for debug and unit test classes something assertNeedFalse etc.
Definition in file Debug.php.
enum ECAT_DIAGNOSTIC |
enum EL_LEVEL_0 |
enum EL_LEVEL_1 |
enum EL_LEVEL_2 |
enum EL_LEVEL_3 |
enum EL_LEVEL_4 |
assertLog | ( | $ | condition_, | |
$ | errLevel_, | |||
$ | errCategory_, | |||
$ | subject_, | |||
$ | variables_ = array() | |||
) |
Enter description here.
..
$condition_ | - bool - true - Everything is ok. false - Invalid condition, should assert. | |
$errLevel_ | ||
$errCategory_ | ||
$subject_ | ||
$variables_ |
Definition at line 33 of file Debug.php.
00034 { 00035 // Go through all assertLog, and see if any level should be changed, 00036 // maybe more SMS errors. Because most of the problems should never occure. 00037 if (!$condition_) 00038 { 00039 echo "<pre>asserted"; 00040 var_dump(debug_backtrace()); 00041 echo "</pre>"; 00042 exit; 00043 } 00044 }