[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/tests_runner/lib/simpletest/ -> compatibility.php (summary)

base include file for SimpleTest

Version: $Id: compatibility.php 5999 2007-06-18 13:13:08Z pachanga $
File Size: 173 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SimpleTestCompatibility:: (7 methods):
  copy()
  isIdentical()
  _isIdenticalType()
  _isArrayOfIdenticalTypes()
  isReference()
  isA()
  setTimeout()


Class: SimpleTestCompatibility  - X-Ref

Static methods for compatibility between different
PHP versions.

copy($object)   X-Ref
Creates a copy whether in PHP5 or PHP4.

param: object $object        Thing to copy.
return: object            A copy.

isIdentical($first, $second)   X-Ref
Identity test. Drops back to equality + types for PHP5
objects as the === operator counts as the
stronger reference constraint.

param: mixed $first    Test subject.
param: mixed $second   Comparison object.
return: boolean         True if identical.

_isIdenticalType($first, $second)   X-Ref
Recursive type test.

param: mixed $first    Test subject.
param: mixed $second   Comparison object.
return: boolean         True if same type.

_isArrayOfIdenticalTypes($first, $second)   X-Ref
Recursive type test for each element of an array.

param: mixed $first    Test subject.
param: mixed $second   Comparison object.
return: boolean         True if identical.

isReference(&$first, &$second)   X-Ref
Test for two variables being aliases.

param: mixed $first    Test subject.
param: mixed $second   Comparison object.
return: boolean         True if same.

isA($object, $class)   X-Ref
Test to see if an object is a member of a
class hiearchy.

param: object $object    Object to test.
param: string $class     Root name of hiearchy.
return: boolean          True if class in hiearchy.

setTimeout($handle, $timeout)   X-Ref
Sets a socket timeout for each chunk.

param: resource $handle    Socket handle.
param: integer $timeout    Limit in seconds.



Generated: Sat Nov 22 03:48:54 2008 Cross-referenced by PHPXref 0.7