MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

File: testUtils.php

Source Location: /MDB2-2.4.0/tests/testUtils.php

Classes:

Page Details:

Includes:

require_once('PEAR.php') [line 76]

errorHandler [line 89]

void errorHandler( $errno, $errstr, $errfile, $errline)



Parameters

   $errno  
   $errstr  
   $errfile  
   $errline  
[ Top ]



errorHandlerPEAR [line 77]

void errorHandlerPEAR( $error_obj)



Parameters

   $error_obj  
[ Top ]



getBacktrace [line 37]

void getBacktrace( [ $errline = 0])

Little helper function that gets a backtrace if available


Parameters

   $errline  
[ Top ]



getTests [line 20]

array getTests( $class $class)

given a class name it returns an array of test* methods
  • Return: of methods beginning with test


Parameters

$class   $class   text classname
[ Top ]



grepForTest [line 9]

void grepForTest( $var)

this is used (with array filter) to filter out the test*

methods from a PHPUnit testcase



Parameters

   $var  
[ Top ]



testCheck [line 29]

void testCheck( $testcase, $testmethod)

Little helper function that outputs check for boxes with suitable names


Parameters

   $testcase  
   $testmethod  
[ Top ]



Documentation generated on Tue, 13 Mar 2007 17:01:11 -0500 by phpDocumentor 1.3.0. PEAR Logo Copyright © PHP Group 2004.