Class SimpleTestCompatibility

Description

Static methods for compatibility between different PHP versions.

Located in /libraries/pear/simpletest/options.php (line 211)


	
			
Method Summary
 array getStackTrace ()
 void isA (object $object, string $class)
 void isIdentical (mixed $first, mixed $second)
 void setTimeout (resource $handle, integer $timeout)
Methods
getStackTrace (line 282)

Gets the current stack trace topmost first.

  • return: List of stack frames.
  • static:
  • access: public
array getStackTrace ()
isA (line 250)

Test to see if an object is a member of a class hiearchy.

  • static:
  • access: public
void isA (object $object, string $class)
  • object $object: Object to test.
  • string $class: Root name of hiearchy.
isIdentical (line 222)

Identity test. Drops back to equality for PHP5 objects as the === operator counts as the stronger reference.

  • static:
  • access: public
void isIdentical (mixed $first, mixed $second)
  • mixed $first: Test subject.
  • mixed $second: Comparison object.
setTimeout (line 272)

Sets a socket timeout for each chunk.

  • static:
  • access: public
void setTimeout (resource $handle, integer $timeout)
  • resource $handle: Socket handle.
  • integer $timeout: Limit in seconds.

Documentation generated on Thu, 20 Jan 2005 17:10:25 +0000 by phpDocumentor 1.3.0RC3