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

Public Member Functions

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

Protected Attributes

 $tag

Detailed Description

An Expectation that looks to see whether some HMTL contains an empty tag of a specific type.

Definition at line 528 of file simpletestlib.php.


Constructor & Destructor Documentation

__construct ( tag,
message = '%s' 
)

Definition at line 531 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 536 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 549 of file simpletestlib.php.


Field Documentation

$tag [protected]

Definition at line 529 of file simpletestlib.php.


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