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

base include file for SimpleTest

Version: $Id: errors.php 1397 2006-09-07 07:55:53Z wei $
Poids: 182 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

SimpleErrorTrappingInvoker:: (2 méthodes):
  SimpleErrorTrappingInvoker()
  invoke()

SimpleErrorQueue:: (8 méthodes):
  SimpleErrorQueue()
  add()
  extract()
  clear()
  isEmpty()
  instance()
  getSeverityAsString()
  simpleTestErrorHandler()


Classe: SimpleErrorTrappingInvoker  - X-Ref

Extension that traps errors into an error queue.

SimpleErrorTrappingInvoker($invoker)   X-Ref
Stores the invoker to wrap.

param: SimpleInvoker $invoker  Test method runner.

invoke($method)   X-Ref
Invokes a test method and dispatches any
untrapped errors. Called back from
the visiting runner.

param: string $method    Test method to call.

Classe: SimpleErrorQueue  - X-Ref

Singleton error queue used to record trapped
errors.

SimpleErrorQueue()   X-Ref
Starts with an empty queue.


add($severity, $message, $filename, $line, $super_globals)   X-Ref
Adds an error to the front of the queue.

param: $severity        PHP error code.
param: $message         Text of error.
param: $filename        File error occoured in.
param: $line            Line number of error.
param: $super_globals   Hash of PHP super global arrays.

extract()   X-Ref
Pulls the earliest error from the queue.

return: False if none, or a list of error

clear()   X-Ref
Discards the contents of the error queue.


isEmpty()   X-Ref
Tests to see if the queue is empty.

return: True if empty.

instance()   X-Ref
Global access to a single error queue.

return: Global error queue object.

getSeverityAsString($severity)   X-Ref
Converst an error code into it's string
representation.

param: $severity  PHP integer error code.
return: String version of error code.

simpleTestErrorHandler($severity, $message, $filename, $line, $super_globals)   X-Ref
Error handler that simply stashes any errors into the global
error queue. Simulates the existing behaviour with respect to
logging errors, but this feature may be removed in future.

param: $severity        PHP error code.
param: $message         Text of error.
param: $filename        File error occoured in.
param: $line            Line number of error.
param: $super_globals   Hash of PHP super global arrays.



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