Moodle  2.2.1
http://www.collinsharper.com
ContainsTagWithContents Class Reference
Inheritance diagram for ContainsTagWithContents:
Collaboration diagram for ContainsTagWithContents:

Public Member Functions

 __construct ($tag, $content, $message= '%s')
 test ($html)
 testMessage ($html)

Protected Attributes

 $tag
 $content

Detailed Description

An Expectation that looks to see whether some HMTL contains a tag with a certain text inside it.

Definition at line 493 of file simpletestlib.php.


Constructor & Destructor Documentation

__construct ( tag,
content,
message = '%s' 
)

Definition at line 497 of file simpletestlib.php.


Member Function Documentation

test ( compare)

Tests the expectation. True if correct.

Parameters:
mixed$compareComparison value.
Returns:
boolean True if correct. public

Reimplemented from SimpleExpectation.

Definition at line 503 of file simpletestlib.php.

Here is the call graph for this function:

testMessage ( compare)

Returns a human readable test message.

Parameters:
mixed$compareComparison value.
Returns:
string Description of success or failure. public

Reimplemented from XMLStructureExpectation.

Definition at line 516 of file simpletestlib.php.


Field Documentation

$content [protected]

Definition at line 495 of file simpletestlib.php.

$tag [protected]

Definition at line 494 of file simpletestlib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations