Differences Between: [Versions 310 and 400] [Versions 39 and 400]
Base test case class.
Author: | Tony Levi <tony.levi@blackboard.com> |
Copyright: | 2015 Blackboard (http://www.blackboard.com) |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 573 lines (19 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
base_testcase:: (7 methods):
assertTag()
assertNotTag()
assertValidKeys()
findNodes()
getDescendants()
getElementsByCaseInsensitiveTagName()
getNodeText()
Class: base_testcase - X-Ref
Base class for PHPUnit test cases customised for MoodleassertTag($matcher, $actual, $message = '', $ishtml = true) X-Ref |
Note: we are overriding this method to remove the deprecated error param: array $matcher param: string $actual param: string $message param: boolean $ishtml |
assertNotTag($matcher, $actual, $message = '', $ishtml = true) X-Ref |
Note: we are overriding this method to remove the deprecated error param: array $matcher param: string $actual param: string $message param: boolean $ishtml |
assertValidKeys(array $hash, array $validKeys) X-Ref |
Validate list of keys in the associative array. return: array param: array $hash param: array $validKeys |
findNodes(DOMDocument $dom, array $options, $isHtml = true) X-Ref |
Parse out the options from the tag using DOM object tree. return: array param: DOMDocument $dom param: array $options param: bool $isHtml |
getDescendants(DOMNode $node) X-Ref |
Recursively get flat array of all descendants of this node. return: array param: DOMNode $node |
getElementsByCaseInsensitiveTagName(DOMDocument $dom, $tag) X-Ref |
Gets elements by case insensitive tagname. return: DOMNodeList param: DOMDocument $dom param: string $tag |
getNodeText(DOMNode $node) X-Ref |
Get the text value of this node's child text node. return: string param: DOMNode $node |