◆ setUp()
  
  
      
        
          | ComponentEntryDescriptionTest::setUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ testCorrectDescription1()
      
        
          | ComponentEntryDescriptionTest::testCorrectDescription1  | 
          ( | 
           | ) | 
           | 
        
      
 
- Exceptions
 - 
  
  
 
Exception\CrawlerException 
Definition at line 152 of file ComponentEntryDescriptionTest.php.
  152                                                  {
  154                $this->assertEquals($this->correct_description1_array,$description->getDescription());
  155 
  156        }
Container to hold description of UI Components.
 
 
 
 
◆ testCorrectDescription2()
      
        
          | ComponentEntryDescriptionTest::testCorrectDescription2  | 
          ( | 
           | ) | 
           | 
        
      
 
- Exceptions
 - 
  
  
 
Exception\CrawlerException 
Definition at line 161 of file ComponentEntryDescriptionTest.php.
  161                                                  {
  163                $this->assertEquals($this->correct_description2_array_return,$description->getDescription());
  164 
  165        }
 
 
 
◆ testEmptyDescription()
      
        
          | ComponentEntryDescriptionTest::testEmptyDescription  | 
          ( | 
           | ) | 
           | 
        
      
 
- Exceptions
 - 
  
  
 
Exception\CrawlerException 
Definition at line 78 of file ComponentEntryDescriptionTest.php.
   78                                               {
   80                $this->assertEquals($this->empty_description_array,$description->getDescription());
   81 
   83                $this->assertEquals($this->empty_description_array,$description->getDescription());
   84        }
 
 
 
◆ testInvalidCategories1()
      
        
          | ComponentEntryDescriptionTest::testInvalidCategories1  | 
          ( | 
           | ) | 
           | 
        
      
 
- Exceptions
 - 
  
  
 
Exception\CrawlerException 
Definition at line 101 of file ComponentEntryDescriptionTest.php.
  101                                                 {
  102                try{
  104                        $this->assertFalse("This should not happen");
  105 
  107                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::INVALID_INDEX);
 
  108                }
  109        }
 
 
 
◆ testInvalidCategories2()
      
        
          | ComponentEntryDescriptionTest::testInvalidCategories2  | 
          ( | 
           | ) | 
           | 
        
      
 
- Exceptions
 - 
  
  
 
Exception\CrawlerException 
Definition at line 113 of file ComponentEntryDescriptionTest.php.
  113                                                 {
  114                try{
  116                        $this->assertFalse("This should not happen");
  117 
  119                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::INVALID_INDEX);
 
  120                }
  121 
  122        }
 
 
 
◆ testInvalidCategoryItem()
      
        
          | ComponentEntryDescriptionTest::testInvalidCategoryItem  | 
          ( | 
           | ) | 
           | 
        
      
 
- Exceptions
 - 
  
  
 
Exception\CrawlerException 
Definition at line 126 of file ComponentEntryDescriptionTest.php.
  126                                                  {
  127                try{
  129                        $this->assertFalse("This should not happen");
  130 
  132                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::STRING_EXPECTED);
 
  133                }
  134 
  135        }
 
 
 
◆ testInvalidCategoryValue()
      
        
          | ComponentEntryDescriptionTest::testInvalidCategoryValue  | 
          ( | 
           | ) | 
           | 
        
      
 
- Exceptions
 - 
  
  
 
Exception\CrawlerException 
Definition at line 139 of file ComponentEntryDescriptionTest.php.
  139                                                   {
  140                try{
  142                        $this->assertFalse("This should not happen");
  143 
  145                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::STRING_EXPECTED);
 
  146                }
  147 
  148        }
 
 
 
◆ testInvalidDescription()
      
        
          | ComponentEntryDescriptionTest::testInvalidDescription  | 
          ( | 
           | ) | 
           | 
        
      
 
- Exceptions
 - 
  
  
 
Exception\CrawlerException 
Definition at line 88 of file ComponentEntryDescriptionTest.php.
   88                                                 {
   89                try{
   92                        $this->assertFalse("This should not happen");
   93 
   95                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::ARRAY_EXPECTED);
 
   96                }
   97        }
 
 
 
◆ testParseProperEntryToArray()
      
        
          | ComponentEntryDescriptionTest::testParseProperEntryToArray  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 167 of file ComponentEntryDescriptionTest.php.
  167                                                      {
  168                $entry = $this->parser->parseArrayFromFile("tests/UI/Crawler/Fixture/ProperEntry.php")[0];
  169 
  170                $entry["description"]['composition'] = "";
  171                $entry["description"]['effect'] = "";
  172 
  174 
  175                $this->assertEquals($description->getDescription(),$entry["description"]);
  176        }
 
 
 
◆ $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   | 
  
 
 
◆ $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: