4require_once(
"libs/composer/vendor/autoload.php");
 
    5include_once(
"tests/UI/Crawler/Fixture/Fixture.php");
 
   33                "composition"=>array(
"Wrong")
 
   37                "rivals"=>array(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"]);
 
An exception for terminatinating execution or to throw for unit testing.
 
$invalid_category_item_array
 
$invalid_categories2_array
 
$correct_description2_array
 
$correct_description2_array_return
 
testParseProperEntryToArray()
 
$correct_description1_array
 
testInvalidCategoryValue()
 
$invalid_categories1_array
 
testInvalidCategoryItem()
 
testCorrectDescription1()
 
$invalid_category_value_array
 
testCorrectDescription2()
 
Container to hold description of UI Components.