Comments: on this page. Click to read or post your own.

Class SimpleTestCompatibility

Description

Static methods for compatibility between different PHP versions.

Located in /sapphire/dev/simpletest/compatibility.php (line 13)


	
			
Method Summary
static object A copy (object $object)
static boolean isA (object $object, string $class)
static boolean isIdentical (mixed $first, mixed $second)
static boolean isReference ( &$first,  &$second, mixed $first, mixed $second)
static void setTimeout (resource $handle, integer $timeout)
Methods
static method copy (line 22)

Creates a copy whether in PHP5 or PHP4.

  • return: copy.
  • access: public
static object A copy (object $object)
  • object $object: Thing to copy.
static method isA (line 137)

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

  • return: True if class in hiearchy.
  • access: public
static boolean isA (object $object, string $class)
  • object $object: Object to test.
  • string $class: Root name of hiearchy.
static method isIdentical (line 40)

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

  • return: True if identical.
  • access: public
static boolean isIdentical (mixed $first, mixed $second)
  • mixed $first: Test subject.
  • mixed $second: Comparison object.
static method isReference (line 110)

Test for two variables being aliases.

  • return: True if same.
  • access: public
static boolean isReference ( &$first,  &$second, mixed $first, mixed $second)
  • mixed $first: Test subject.
  • mixed $second: Comparison object.
  • &$first
  • &$second
static method setTimeout (line 163)

Sets a socket timeout for each chunk.

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

Documentation generated on Sun, 19 Oct 2008 06:39:02 +1300 by phpDocumentor 1.3.2