[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/tests/test_tools/simpletest/ -> compatibility.php (sommaire)

base include file for SimpleTest

Version: $Id: compatibility.php 1526 2006-11-28 23:34:00Z wei $
Poids: 184 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

SimpleTestCompatibility:: (8 méthodes):
  copy()
  isIdentical()
  _isIdenticalType()
  _isArrayOfIdenticalTypes()
  isReference()
  isA()
  setTimeout()
  getStackTrace()


Classe: 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.

getStackTrace()   X-Ref
Gets the current stack trace topmost first.

return: array        List of stack frames.



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7