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

Public Member Functions

 __construct ($name, $choices, $selected=null, $enabled=null, $message= '%s')
 test ($html)
 customMessage ($html)

Protected Attributes

 $name
 $choices
 $selected
 $enabled

Detailed Description

An Expectation that looks to see whether some HMTL contains a tag with an array of attributes. All attributes must be present and their values must match the expected values. A third parameter can be used to specify attribute=>value pairs which must not be present in a positive match.

Definition at line 366 of file simpletestlib.php.


Constructor & Destructor Documentation

__construct ( name,
choices,
selected = null,
enabled = null,
message = '%s' 
)

Definition at line 384 of file simpletestlib.php.


Member Function Documentation

customMessage ( html)

Definition at line 440 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 392 of file simpletestlib.php.

Here is the call graph for this function:


Field Documentation

$choices [protected]

Definition at line 374 of file simpletestlib.php.

$enabled [protected]

Definition at line 382 of file simpletestlib.php.

$name [protected]

Definition at line 370 of file simpletestlib.php.

$selected [protected]

Definition at line 378 of file simpletestlib.php.


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