Definition at line 10 of file ComponentEntryRulesTest.php.
◆ setUp()
ComponentEntryRulesTest::setUp |
( |
| ) |
|
|
protected |
◆ testCorrectRules1()
ComponentEntryRulesTest::testCorrectRules1 |
( |
| ) |
|
- Exceptions
-
Definition at line 155 of file ComponentEntryRulesTest.php.
158 $this->assertEquals($this->correct_rules1_array, $rules->getRules());
Container to hold rules of UI Components.
◆ testCorrectRules2()
ComponentEntryRulesTest::testCorrectRules2 |
( |
| ) |
|
- Exceptions
-
Definition at line 164 of file ComponentEntryRulesTest.php.
167 $this->assertEquals($this->correct_rules2_array_return, $rules->getRules());
Container to hold rules of UI Components.
◆ testEmptyRules()
ComponentEntryRulesTest::testEmptyRules |
( |
| ) |
|
- Exceptions
-
Definition at line 83 of file ComponentEntryRulesTest.php.
References $rule, and array.
86 $this->assertEquals($this->empty_rules_array,
$rule->getRules());
89 $this->assertEquals($this->empty_rules_array, $rule->getRules());
Container to hold rules of UI Components.
Create styles array
The data for the language used.
◆ testInvalidCategories1()
ComponentEntryRulesTest::testInvalidCategories1 |
( |
| ) |
|
- Exceptions
-
Definition at line 107 of file ComponentEntryRulesTest.php.
111 $this->assertFalse(
"This should not happen");
113 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::INVALID_INDEX);
Container to hold rules of UI Components.
◆ testInvalidCategories2()
ComponentEntryRulesTest::testInvalidCategories2 |
( |
| ) |
|
- Exceptions
-
Definition at line 119 of file ComponentEntryRulesTest.php.
123 $this->assertFalse(
"This should not happen");
125 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::INVALID_INDEX);
Container to hold rules of UI Components.
◆ testInvalidCategoryItem()
ComponentEntryRulesTest::testInvalidCategoryItem |
( |
| ) |
|
- Exceptions
-
Definition at line 131 of file ComponentEntryRulesTest.php.
135 $this->assertFalse(
"This should not happen");
137 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::ARRAY_EXPECTED);
Container to hold rules of UI Components.
◆ testInvalidCategoryValue()
ComponentEntryRulesTest::testInvalidCategoryValue |
( |
| ) |
|
- Exceptions
-
Definition at line 143 of file ComponentEntryRulesTest.php.
147 $this->assertFalse(
"This should not happen");
149 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::STRING_EXPECTED);
Container to hold rules of UI Components.
◆ testInvalidRules()
ComponentEntryRulesTest::testInvalidRules |
( |
| ) |
|
- Exceptions
-
Definition at line 94 of file ComponentEntryRulesTest.php.
99 $this->assertFalse(
"This should not happen");
101 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::ARRAY_EXPECTED);
Container to hold rules of UI Components.
◆ testParseProperEntryToArray()
ComponentEntryRulesTest::testParseProperEntryToArray |
( |
| ) |
|
Definition at line 170 of file ComponentEntryRulesTest.php.
References array.
172 $entry = $this->parser->parseArrayFromFile(
"tests/UI/Crawler/Fixture/ProperEntry.php")[0];
174 $entry[
"rules"][
'composition'] =
array();
175 $entry[
"rules"][
'interaction'] =
array();
176 $entry[
"rules"][
'wording'] =
array();
177 $entry[
"rules"][
'ordering'] =
array();
178 $entry[
"rules"][
'responsiveness'] =
array();
179 $entry[
"rules"][
'accessibility'] =
array();
182 $this->assertEquals($rules->getRules(), $entry[
"rules"]);
Container to hold rules of UI Components.
Create styles array
The data for the language used.
◆ $correct_rules1_array
ComponentEntryRulesTest::$correct_rules1_array |
|
protected |
Initial value: "usage"=>
array(1 =>
"Usage Rule 1", 2 =>
"Usage Rule 2"),
"composition"=>
array(1 =>
"composition Rule 1", 2 =>
"composition Rule 2"),
"interaction"=>
array(1 =>
"interaction Rule 1", 2 =>
"interaction Rule 2"),
"wording"=>
array(1 =>
"wording Rule 1", 2 =>
"wording Rule 2"),
"ordering"=>
array(1 =>
"ordering Rule 1", 2 =>
"ordering Rule 2"),
"style"=>
array(1 =>
"style Rule 1", 2 =>
"style Rule 2"),
"responsiveness"=>
array(1 =>
"responsiveness Rule 1", 2 =>
"responsiveness Rule 2"),
"accessibility"=>
array(1 =>
"accessibility Rule 1", 2 =>
"accessibility Rule 2")
)
Definition at line 38 of file ComponentEntryRulesTest.php.
◆ $correct_rules2_array
ComponentEntryRulesTest::$correct_rules2_array |
|
protected |
◆ $correct_rules2_array_return
ComponentEntryRulesTest::$correct_rules2_array_return |
|
protected |
◆ $empty_rules_array
ComponentEntryRulesTest::$empty_rules_array |
|
protected |
◆ $invalid_categories1_array
ComponentEntryRulesTest::$invalid_categories1_array |
|
protected |
◆ $invalid_categories2_array
ComponentEntryRulesTest::$invalid_categories2_array |
|
protected |
◆ $invalid_category_item_array
ComponentEntryRulesTest::$invalid_category_item_array |
|
protected |
◆ $invalid_category_value_array
ComponentEntryRulesTest::$invalid_category_value_array |
|
protected |
◆ $parser
ComponentEntryRulesTest::$parser |
|
protected |
◆ $proper_entry
ComponentEntryRulesTest::$proper_entry |
|
protected |
The documentation for this class was generated from the following file: