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

Global state for SimpleTest and kicker script in future versions.

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

Définit 2 classes

SimpleTest:: (14 méthodes):
  getVersion()
  ignore()
  ignoreParentsIfIgnored()
  isIgnored()
  setMockBaseClass()
  getMockBaseClass()
  useProxy()
  getDefaultProxy()
  getDefaultProxyUsername()
  getDefaultProxyPassword()
  setCurrent()
  getCurrent()
  _getRegistry()
  _getDefaults()

SimpleTestOptions:: (9 méthodes):
  getVersion()
  ignore()
  isIgnored()
  setMockBaseClass()
  getMockBaseClass()
  useProxy()
  getDefaultProxy()
  getDefaultProxyUsername()
  getDefaultProxyPassword()


Classe: SimpleTest  - X-Ref

Static global directives and options. I hate this
class. It's a mixture of reference hacks, configuration
and previous design screw-ups that I have to maintain
to keep backward compatibility.

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. Once PHP4 is dropped this will disappear
as a public method and "abstract" will rule.

param: string $class        Add a class to ignore.

ignoreParentsIfIgnored($classes)   X-Ref
Scans the now complete ignore list, and adds
all parent classes to the list. If a class
is not a runnable test case, then it's parents
wouldn't be either. This is syntactic sugar
to cut down on ommissions of ignore()'s or
missing abstract declarations. This cannot
be done whilst loading classes wiithout forcing
a particular order on the class declarations and
the ignore() calls. It's nice to havethe ignore()
calls at the top of teh file.

param: array $classes     Class names of interest.

isIgnored($class)   X-Ref
Test to see if a test case is in the ignore
list. Quite obviously the ignore list should
be a separate object and will be one day.
This method is internal to SimpleTest. Don't
use it.

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

setMockBaseClass($mock_base)   X-Ref


getMockBaseClass()   X-Ref


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.

setCurrent($test)   X-Ref
Sets the current test case instance. This
global instance can be used by the mock objects
to send message to the test cases.

param: SimpleTestCase $test        Test case to register.

getCurrent()   X-Ref
Accessor for current test instance.

return: SimpleTEstCase        Currently running test.

_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: SimpleTestOptions  - X-Ref




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