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

Public Member Functions

 __construct ($tag, $attribute, $value, $message= '%s')
 test ($html)
 customMessage ($html)

Protected Attributes

 $tag
 $attribute
 $value

Detailed Description

An Expectation that looks to see whether some HMTL contains a tag with a certain attribute.

Definition at line 227 of file simpletestlib.php.


Constructor & Destructor Documentation

__construct ( tag,
attribute,
value,
message = '%s' 
)

Definition at line 232 of file simpletestlib.php.


Member Function Documentation

customMessage ( html)

Definition at line 254 of file simpletestlib.php.

test ( compare)

Tests the expectation. True if correct.

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

Reimplemented from SimpleExpectation.

Definition at line 239 of file simpletestlib.php.

Here is the call graph for this function:


Field Documentation

$attribute [protected]

Definition at line 229 of file simpletestlib.php.

$tag [protected]

Definition at line 228 of file simpletestlib.php.

$value [protected]

Definition at line 230 of file simpletestlib.php.


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