◆ setUp()
ComponentEntryDescriptionTest::setUp |
( |
| ) |
|
|
protected |
◆ testCorrectDescription1()
ComponentEntryDescriptionTest::testCorrectDescription1 |
( |
| ) |
|
- Exceptions
-
Definition at line 151 of file ComponentEntryDescriptionTest.php.
153 $description =
new Entry\ComponentEntryDescription($this->correct_description1_array);
154 $this->assertEquals($this->correct_description1_array, $description->getDescription());
◆ testCorrectDescription2()
ComponentEntryDescriptionTest::testCorrectDescription2 |
( |
| ) |
|
- Exceptions
-
Definition at line 160 of file ComponentEntryDescriptionTest.php.
162 $description =
new Entry\ComponentEntryDescription($this->correct_description2_array);
163 $this->assertEquals($this->correct_description2_array_return, $description->getDescription());
◆ testEmptyDescription()
ComponentEntryDescriptionTest::testEmptyDescription |
( |
| ) |
|
- Exceptions
-
Definition at line 79 of file ComponentEntryDescriptionTest.php.
81 $description =
new Entry\ComponentEntryDescription();
82 $this->assertEquals($this->empty_description_array, $description->getDescription());
84 $description =
new Entry\ComponentEntryDescription(array());
85 $this->assertEquals($this->empty_description_array, $description->getDescription());
◆ testInvalidCategories1()
ComponentEntryDescriptionTest::testInvalidCategories1 |
( |
| ) |
|
- Exceptions
-
Definition at line 103 of file ComponentEntryDescriptionTest.php.
References Vendor\Package\$e.
106 new Entry\ComponentEntryDescription($this->invalid_categories1_array);
107 $this->assertFalse(
"This should not happen");
109 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::INVALID_INDEX);
◆ testInvalidCategories2()
ComponentEntryDescriptionTest::testInvalidCategories2 |
( |
| ) |
|
- Exceptions
-
Definition at line 115 of file ComponentEntryDescriptionTest.php.
References Vendor\Package\$e.
118 new Entry\ComponentEntryDescription($this->invalid_categories2_array);
119 $this->assertFalse(
"This should not happen");
121 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::INVALID_INDEX);
◆ testInvalidCategoryItem()
ComponentEntryDescriptionTest::testInvalidCategoryItem |
( |
| ) |
|
- Exceptions
-
Definition at line 127 of file ComponentEntryDescriptionTest.php.
References Vendor\Package\$e.
130 new Entry\ComponentEntryDescription($this->invalid_category_item_array);
131 $this->assertFalse(
"This should not happen");
133 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::STRING_EXPECTED);
◆ testInvalidCategoryValue()
ComponentEntryDescriptionTest::testInvalidCategoryValue |
( |
| ) |
|
- Exceptions
-
Definition at line 139 of file ComponentEntryDescriptionTest.php.
References Vendor\Package\$e.
142 new Entry\ComponentEntryDescription($this->invalid_category_value_array);
143 $this->assertFalse(
"This should not happen");
145 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::STRING_EXPECTED);
◆ testInvalidDescription()
ComponentEntryDescriptionTest::testInvalidDescription |
( |
| ) |
|
- Exceptions
-
Definition at line 90 of file ComponentEntryDescriptionTest.php.
References Vendor\Package\$e.
93 new Entry\ComponentEntryDescription(null);
94 new Entry\ComponentEntryDescription(
"desc1");
95 $this->assertFalse(
"This should not happen");
97 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::ARRAY_EXPECTED);
◆ testParseProperEntryToArray()
ComponentEntryDescriptionTest::testParseProperEntryToArray |
( |
| ) |
|
Definition at line 166 of file ComponentEntryDescriptionTest.php.
168 $entry = $this->parser->parseArrayFromFile(
"tests/UI/Crawler/Fixture/ProperEntry.php")[0];
170 $entry[
"description"][
'composition'] =
"";
171 $entry[
"description"][
'effect'] =
"";
173 $description =
new Entry\ComponentEntryDescription($entry[
"description"]);
175 $this->assertEquals($description->getDescription(), $entry[
"description"]);
◆ $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 41 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 52 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: