[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
base include file for SimpleTest
Version: | $Id: xml.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 614 lignes (21 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
XmlReporter:: (17 méthodes):
XmlReporter()
_getIndent()
toParsedXml()
paintGroupStart()
paintGroupEnd()
paintCaseStart()
paintCaseEnd()
paintMethodStart()
paintMethodEnd()
paintPass()
paintFail()
paintError()
paintMessage()
paintFormattedMessage()
paintSignal()
paintHeader()
paintFooter()
NestingXmlTag:: (4 méthodes):
NestingXmlTag()
setName()
getName()
_getAttributes()
NestingMethodTag:: (3 méthodes):
NestingMethodTag()
paintStart()
paintEnd()
NestingCaseTag:: (3 méthodes):
NestingCaseTag()
paintStart()
paintEnd()
NestingGroupTag:: (4 méthodes):
NestingGroupTag()
paintStart()
paintEnd()
getSize()
SimpleTestXmlParser:: (11 méthodes):
SimpleTestXmlParser()
parse()
_createParser()
_pushNestingTag()
_getCurrentNestingTag()
_popNestingTag()
_isLeaf()
_startElement()
_endElement()
_addContent()
_default()
Classe: XmlReporter - X-Ref
Creates the XML needed for remote communicationXmlReporter($namespace = false, $indent = ' ') X-Ref |
Does nothing yet. |
_getIndent($offset = 0) X-Ref |
Calculates the pretty printing indent level from the current level of nesting. param: integer $offset Extra indenting level. return: string Leading space. |
toParsedXml($text) X-Ref |
Converts character string to parsed XML entities string. param: string text Unparsed character data. return: string Parsed character data. |
paintGroupStart($test_name, $size) X-Ref |
Paints the start of a group test. param: string $test_name Name of test that is starting. param: integer $size Number of test cases starting. |
paintGroupEnd($test_name) X-Ref |
Paints the end of a group test. param: string $test_name Name of test that is ending. |
paintCaseStart($test_name) X-Ref |
Paints the start of a test case. param: string $test_name Name of test that is starting. |
paintCaseEnd($test_name) X-Ref |
Paints the end of a test case. param: string $test_name Name of test that is ending. |
paintMethodStart($test_name) X-Ref |
Paints the start of a test method. param: string $test_name Name of test that is starting. |
paintMethodEnd($test_name) X-Ref |
Paints the end of a test method. param: string $test_name Name of test that is ending. param: integer $progress Number of test cases ending. |
paintPass($message) X-Ref |
Increments the pass count. param: string $message Message is ignored. |
paintFail($message) X-Ref |
Increments the fail count. param: string $message Message is ignored. |
paintError($message) X-Ref |
Paints a PHP error or exception. param: string $message Message is ignored. |
paintMessage($message) X-Ref |
Paints a simple supplementary message. param: string $message Text to display. |
paintFormattedMessage($message) X-Ref |
Paints a formatted ASCII message such as a variable dump. param: string $message Text to display. |
paintSignal($type, $payload) X-Ref |
Serialises the event object. param: string $type Event type as text. param: mixed $payload Message or object. |
paintHeader($test_name) X-Ref |
Paints the test document header. param: string $test_name First test top level |
paintFooter($test_name) X-Ref |
Paints the test document footer. param: string $test_name The top level test. |
Classe: NestingXmlTag - X-Ref
Accumulator for incoming tag. Holds theNestingXmlTag($attributes) X-Ref |
Sets the basic test information except the name. param: hash $attributes Name value pairs. |
setName($name) X-Ref |
Sets the test case/method name. param: string $name Name of test. |
getName() X-Ref |
Accessor for name. return: string Name of test. |
_getAttributes() X-Ref |
Accessor for attributes. return: hash All attributes. |
Classe: NestingMethodTag - X-Ref
Accumulator for incoming method tag. Holds theNestingMethodTag($attributes) X-Ref |
Sets the basic test information except the name. param: hash $attributes Name value pairs. |
paintStart($listener) X-Ref |
Signals the appropriate start event on the listener. param: SimpleReporter $listener Target for events. |
paintEnd($listener) X-Ref |
Signals the appropriate end event on the listener. param: SimpleReporter $listener Target for events. |
Classe: NestingCaseTag - X-Ref
Accumulator for incoming case tag. Holds theNestingCaseTag($attributes) X-Ref |
Sets the basic test information except the name. param: hash $attributes Name value pairs. |
paintStart($listener) X-Ref |
Signals the appropriate start event on the listener. param: SimpleReporter $listener Target for events. |
paintEnd($listener) X-Ref |
Signals the appropriate end event on the listener. param: SimpleReporter $listener Target for events. |
Classe: NestingGroupTag - X-Ref
Accumulator for incoming group tag. Holds theNestingGroupTag($attributes) X-Ref |
Sets the basic test information except the name. param: hash $attributes Name value pairs. |
paintStart($listener) X-Ref |
Signals the appropriate start event on the listener. param: SimpleReporter $listener Target for events. |
paintEnd($listener) X-Ref |
Signals the appropriate end event on the listener. param: SimpleReporter $listener Target for events. |
getSize() X-Ref |
The size in the attributes. return: integer Value of size attribute or zero. |
Classe: SimpleTestXmlParser - X-Ref
Parser for importing the output of the XmlReporter.SimpleTestXmlParser($listener) X-Ref |
Loads a listener with the SimpleReporter interface. param: SimpleReporter $listener Listener of tag events. |
parse($chunk) X-Ref |
Parses a block of XML sending the results to the listener. param: string $chunk Block of text to read. return: boolean True if valid XML. |
_createParser() X-Ref |
Sets up expat as the XML parser. return: resource Expat handle. |
_pushNestingTag($nested) X-Ref |
Opens a new test nesting level. return: NestedXmlTag The group, case or method tag |
_getCurrentNestingTag() X-Ref |
Accessor for current test structure tag. return: NestedXmlTag The group, case or method tag |
_popNestingTag() X-Ref |
Ends a nesting tag. return: NestedXmlTag The group, case or method tag |
_isLeaf($tag) X-Ref |
Test if tag is a leaf node with only text content. param: string $tag XML tag name. return: @boolean True if leaf, false if nesting. |
_startElement($expat, $tag, $attributes) X-Ref |
Handler for start of event element. param: resource $expat Parser handle. param: string $tag Element name. param: hash $attributes Name value pairs. |
_endElement($expat, $tag) X-Ref |
End of element event. param: resource $expat Parser handle. param: string $tag Element name. |
_addContent($expat, $text) X-Ref |
Content between start and end elements. param: resource $expat Parser handle. param: string $text Usually output messages. |
_default($expat, $default) X-Ref |
XML and Doctype handler. Discards all such content. param: resource $expat Parser handle. param: string $default Text of default content. |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |