[ 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/ -> options.php (sommaire)

base include file for SimpleTest

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

Définit 2 classes

SimpleTestOptions:: (15 méthodes):
  getVersion()
  ignore()
  isIgnored()
  setStubBaseClass()
  getStubBaseClass()
  setMockBaseClass()
  getMockBaseClass()
  addPartialMockCode()
  getPartialMockCode()
  useProxy()
  getDefaultProxy()
  getDefaultProxyUsername()
  getDefaultProxyPassword()
  _getRegistry()
  _getDefaults()

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


Classe: SimpleTestOptions  - X-Ref

Static global directives and options.

getVersion()   X-Ref
Reads the SimpleTest version from the release file.

return: string        Version string.

ignore($class)   X-Ref
Sets the name of a test case to ignore, usually
because the class is an abstract case that should
not be run.

param: string $class        Add a class to ignore.

isIgnored($class)   X-Ref
Test to see if a test case is in the ignore
list.

param: string $class        Class name to test.
return: boolean             True if should not be run.

setStubBaseClass($stub_base)   X-Ref
The base class name is settable here. This is the
class that a new stub will inherited from.
To modify the generated stubs simply extend the
SimpleStub class and set it's name
with this method before any stubs are generated.

param: string $stub_base     Server stub class to use.

getStubBaseClass()   X-Ref
Accessor for the currently set stub base class.

return: string        Class name to inherit from.

setMockBaseClass($mock_base)   X-Ref
The base class name is settable here. This is the
class that a new mock will inherited from.
To modify the generated mocks simply extend the
SimpleMock class and set it's name
with this method before any mocks are generated.

param: string $mock_base        Mock base class to use.

getMockBaseClass()   X-Ref
Accessor for the currently set mock base class.

return: string           Class name to inherit from.

addPartialMockCode($code = '')   X-Ref
Adds additional mock code.

param: string $code    Extra code that can be added

getPartialMockCode()   X-Ref
Accessor for additional partial mock code.

return: string       Extra code.

useProxy($proxy, $username = false, $password = false)   X-Ref
Sets proxy to use on all requests for when
testing from behind a firewall. Set host
to false to disable. This will take effect
if there are no other proxy settings.

param: string $proxy     Proxy host as URL.
param: string $username  Proxy username for authentication.
param: string $password  Proxy password for authentication.

getDefaultProxy()   X-Ref
Accessor for default proxy host.

return: string       Proxy URL.

getDefaultProxyUsername()   X-Ref
Accessor for default proxy username.

return: string    Proxy username for authentication.

getDefaultProxyPassword()   X-Ref
Accessor for default proxy password.

return: string    Proxy password for authentication.

_getRegistry()   X-Ref
Accessor for global registry of options.

return: hash           All stored values.

_getDefaults()   X-Ref
Constant default values.

return: hash       All registry defaults.

Classe: SimpleTestCompatibility  - X-Ref

Static methods for compatibility between different
PHP versions.

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.

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

param: mixed $first    Test subject.
param: mixed $second   Comparison object.

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

param: mixed $first    Test subject.
param: mixed $second   Comparison object.

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

param: mixed $first    Test subject.
param: mixed $second   Comparison object.

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.

classExists($class)   X-Ref
Autoload safe version of class_exists().

param: string $class        Name of class to look for.
return: boolean             True if class is defined.

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