4 require_once(
"libs/composer/vendor/autoload.php");
5 include_once(
"tests/UI/Crawler/Fixture/Fixture.php");
33 "composition"=>
array(
"Wrong")
41 "purpose"=>
"Purpose Description",
42 "composition"=>
"Composition Description",
43 "effect"=>
"Effect Description",
44 "rivals"=>
array(
"Element 1" =>
"Rival 1",
"Element 2" =>
"Rival 2")
48 "purpose"=>
"Purpose Description" 52 "purpose"=>
"Purpose Description",
80 $this->assertEquals($this->empty_description_array,$description->getDescription());
83 $this->assertEquals($this->empty_description_array,$description->getDescription());
92 $this->assertFalse(
"This should not happen");
95 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::ARRAY_EXPECTED);
104 $this->assertFalse(
"This should not happen");
107 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::INVALID_INDEX);
116 $this->assertFalse(
"This should not happen");
119 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::INVALID_INDEX);
129 $this->assertFalse(
"This should not happen");
132 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::STRING_EXPECTED);
142 $this->assertFalse(
"This should not happen");
145 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::STRING_EXPECTED);
154 $this->assertEquals($this->correct_description1_array,$description->getDescription());
163 $this->assertEquals($this->correct_description2_array_return,$description->getDescription());
168 $entry = $this->parser->parseArrayFromFile(
"tests/UI/Crawler/Fixture/ProperEntry.php")[0];
170 $entry[
"description"][
'composition'] =
"";
171 $entry[
"description"][
'effect'] =
"";
175 $this->assertEquals($description->getDescription(),$entry[
"description"]);
testParseProperEntryToArray()
testCorrectDescription1()
$invalid_categories2_array
$correct_description2_array_return
$correct_description2_array
$invalid_category_item_array
$correct_description1_array
$invalid_categories1_array
testInvalidCategoryValue()
Create styles array
The data for the language used.
testCorrectDescription2()
Container to hold description of UI Components.
testInvalidCategoryItem()
$invalid_category_value_array