◆ setUp()
ComponentEntryDescriptionTest::setUp |
( |
| ) |
|
|
protected |
◆ testCorrectDescription1()
ComponentEntryDescriptionTest::testCorrectDescription1 |
( |
| ) |
|
◆ testCorrectDescription2()
ComponentEntryDescriptionTest::testCorrectDescription2 |
( |
| ) |
|
◆ testEmptyDescription()
ComponentEntryDescriptionTest::testEmptyDescription |
( |
| ) |
|
- Exceptions
-
Definition at line 78 of file ComponentEntryDescriptionTest.php.
References $description.
81 $this->assertEquals($this->empty_description_array,
$description->getDescription());
84 $this->assertEquals($this->empty_description_array, $description->getDescription());
Container to hold description of UI Components.
◆ testInvalidCategories1()
ComponentEntryDescriptionTest::testInvalidCategories1 |
( |
| ) |
|
- Exceptions
-
Definition at line 102 of file ComponentEntryDescriptionTest.php.
106 $this->assertFalse(
"This should not happen");
108 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::INVALID_INDEX);
Container to hold description of UI Components.
◆ testInvalidCategories2()
ComponentEntryDescriptionTest::testInvalidCategories2 |
( |
| ) |
|
- Exceptions
-
Definition at line 114 of file ComponentEntryDescriptionTest.php.
118 $this->assertFalse(
"This should not happen");
120 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::INVALID_INDEX);
Container to hold description of UI Components.
◆ testInvalidCategoryItem()
ComponentEntryDescriptionTest::testInvalidCategoryItem |
( |
| ) |
|
- Exceptions
-
Definition at line 126 of file ComponentEntryDescriptionTest.php.
130 $this->assertFalse(
"This should not happen");
132 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::STRING_EXPECTED);
Container to hold description of UI Components.
◆ testInvalidCategoryValue()
ComponentEntryDescriptionTest::testInvalidCategoryValue |
( |
| ) |
|
- Exceptions
-
Definition at line 138 of file ComponentEntryDescriptionTest.php.
142 $this->assertFalse(
"This should not happen");
144 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::STRING_EXPECTED);
Container to hold description of UI Components.
◆ testInvalidDescription()
ComponentEntryDescriptionTest::testInvalidDescription |
( |
| ) |
|
- Exceptions
-
Definition at line 89 of file ComponentEntryDescriptionTest.php.
94 $this->assertFalse(
"This should not happen");
96 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::ARRAY_EXPECTED);
Container to hold description of UI Components.
◆ testParseProperEntryToArray()
ComponentEntryDescriptionTest::testParseProperEntryToArray |
( |
| ) |
|
Definition at line 165 of file ComponentEntryDescriptionTest.php.
References $description.
167 $entry = $this->parser->parseArrayFromFile(
"tests/UI/Crawler/Fixture/ProperEntry.php")[0];
169 $entry[
"description"][
'composition'] =
"";
170 $entry[
"description"][
'effect'] =
"";
174 $this->assertEquals(
$description->getDescription(), $entry[
"description"]);
Container to hold description of UI Components.
◆ $correct_description1_array
ComponentEntryDescriptionTest::$correct_description1_array |
|
protected |
Initial value:= array(
"purpose" => "Purpose Description",
"composition" => "Composition Description",
"effect" => "Effect Description",
"rivals" => array("Element 1" => "Rival 1", "Element 2" => "Rival 2")
)
Definition at line 40 of file ComponentEntryDescriptionTest.php.
◆ $correct_description2_array
ComponentEntryDescriptionTest::$correct_description2_array |
|
protected |
◆ $correct_description2_array_return
ComponentEntryDescriptionTest::$correct_description2_array_return |
|
protected |
Initial value:= array(
"purpose" => "Purpose Description",
"composition" => "",
"effect" => "",
"rivals" => array()
)
Definition at line 51 of file ComponentEntryDescriptionTest.php.
◆ $empty_description_array
ComponentEntryDescriptionTest::$empty_description_array |
|
protected |
◆ $invalid_categories1_array
ComponentEntryDescriptionTest::$invalid_categories1_array |
|
protected |
◆ $invalid_categories2_array
ComponentEntryDescriptionTest::$invalid_categories2_array |
|
protected |
◆ $invalid_category_item_array
ComponentEntryDescriptionTest::$invalid_category_item_array |
|
protected |
◆ $invalid_category_value_array
ComponentEntryDescriptionTest::$invalid_category_value_array |
|
protected |
◆ $parser
ComponentEntryDescriptionTest::$parser |
|
protected |
◆ $proper_entry
ComponentEntryDescriptionTest::$proper_entry |
|
protected |
The documentation for this class was generated from the following file: