Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | Static Protected Member Functions | List of all members
base_testcase Class Reference
Inheritance diagram for base_testcase:
advanced_testcase basic_testcase database_driver_testcase community_of_inquiry_activities_completed_by_testcase core_event_course_module_instance_list_viewed_testcase core_event_course_module_viewed_testcase core_privacy\tests\provider_testcase data_loading_method_test_base data_privacy_testcase externallib_advanced_testcase question_attempt_upgrader_test_base question_testcase restore_date_testcase userlist_collection_test

Static Public Member Functions

static assertNotTag ($matcher, $actual, $message='', $ishtml=true)
 Note: we are overriding this method to remove the deprecated error. More...
 
static assertTag ($matcher, $actual, $message='', $ishtml=true)
 Note: we are overriding this method to remove the deprecated error. More...
 
static assertValidKeys (array $hash, array $validKeys)
 Validate list of keys in the associative array. More...
 
static findNodes (DOMDocument $dom, array $options, $isHtml=true)
 Parse out the options from the tag using DOM object tree. More...
 

Static Protected Member Functions

static getDescendants (DOMNode $node)
 Recursively get flat array of all descendants of this node. More...
 
static getElementsByCaseInsensitiveTagName (DOMDocument $dom, $tag)
 Gets elements by case insensitive tagname. More...
 
static getNodeText (DOMNode $node)
 Get the text value of this node's child text node. More...
 

Member Function Documentation

◆ assertNotTag()

static base_testcase::assertNotTag (   $matcher,
  $actual,
  $message = '',
  $ishtml = true 
)
static

Note: we are overriding this method to remove the deprecated error.

See also
https://tracker.moodle.org/browse/MDL-47129
Parameters
array$matcher
string$actual
string$message
boolean$ishtml
Deprecated:
3.0

◆ assertTag()

static base_testcase::assertTag (   $matcher,
  $actual,
  $message = '',
  $ishtml = true 
)
static

Note: we are overriding this method to remove the deprecated error.

See also
https://tracker.moodle.org/browse/MDL-47129
Parameters
array$matcher
string$actual
string$message
boolean$ishtml
Deprecated:
3.0

◆ assertValidKeys()

static base_testcase::assertValidKeys ( array  $hash,
array  $validKeys 
)
static

Validate list of keys in the associative array.

Parameters
array$hash
array$validKeys
Return values
array
Exceptions
PHPUnit::Framework::Exception

◆ findNodes()

static base_testcase::findNodes ( DOMDocument  $dom,
array  $options,
  $isHtml = true 
)
static

Parse out the options from the tag using DOM object tree.

Parameters
DOMDocument$dom
array$options
bool$isHtml
Return values
array

◆ getDescendants()

static base_testcase::getDescendants ( DOMNode  $node)
staticprotected

Recursively get flat array of all descendants of this node.

Parameters
DOMNode$node
Return values
array

◆ getElementsByCaseInsensitiveTagName()

static base_testcase::getElementsByCaseInsensitiveTagName ( DOMDocument  $dom,
  $tag 
)
staticprotected

Gets elements by case insensitive tagname.

Parameters
DOMDocument$dom
string$tag
Return values
DOMNodeList

◆ getNodeText()

static base_testcase::getNodeText ( DOMNode  $node)
staticprotected

Get the text value of this node's child text node.

Parameters
DOMNode$node
Return values
string

The documentation for this class was generated from the following file: