4require_once(
"libs/composer/vendor/autoload.php");
 
    5include_once(
"tests/UI/Crawler/Fixture/Fixture.php");
 
   15                "composition"=>array(),
 
   16                "interaction"=>array(),
 
   20                "responsiveness"=>array(),
 
   21                "accessibility"=>array()
 
   32                "usage"=>array(
"Correct"),
 
   33                "composition"=>
"Wrong" 
   36                "usage"=>array(
"Correct"),
 
   37                "composition"=>array(array(
"wrong"))
 
   40                "usage"=>array(1 => 
"Usage Rule 1", 2 => 
"Usage Rule 2"),
 
   41                "composition"=>array(1 => 
"composition Rule 1", 2 => 
"composition Rule 2"),
 
   42                "interaction"=>array(1 => 
"interaction Rule 1", 2 => 
"interaction Rule 2"),
 
   43                "wording"=>array(1 => 
"wording Rule 1", 2 => 
"wording Rule 2"),
 
   44                "ordering"=>array(1 => 
"ordering Rule 1", 2 => 
"ordering Rule 2"),
 
   45                "style"=>array(1 => 
"style Rule 1", 2 => 
"style Rule 2"),
 
   46                "responsiveness"=>array(1 => 
"responsiveness Rule 1", 2 => 
"responsiveness Rule 2"),
 
   47                "accessibility"=>array(1 => 
"accessibility Rule 1", 2 => 
"accessibility Rule 2")
 
   50                "usage"=>array(1 => 
"Usage Rule 1", 2 => 
"Usage Rule 2"),
 
   54                "usage"=>array(1 => 
"Usage Rule 1", 2 => 
"Usage Rule 2"),
 
   55                "composition"=>array(),
 
   56                "interaction"=>array(),
 
   60                "responsiveness"=>array(),
 
   61                "accessibility"=>array()
 
   86                $this->assertEquals($this->empty_rules_array,$rule->getRules());
 
   89                $this->assertEquals($this->empty_rules_array,$rule->getRules());
 
   98                        $this->assertFalse(
"This should not happen");
 
  101                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::ARRAY_EXPECTED);
 
  110                        $this->assertFalse(
"This should not happen");
 
  113                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::INVALID_INDEX);
 
  122                        $this->assertFalse(
"This should not happen");
 
  125                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::INVALID_INDEX);
 
  134                        $this->assertFalse(
"This should not happen");
 
  137                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::ARRAY_EXPECTED);
 
  146                        $this->assertFalse(
"This should not happen");
 
  149                        $this->assertEquals($e->getCode(),
Crawler\Exception\CrawlerException::STRING_EXPECTED);
 
  157                $this->assertEquals($this->correct_rules1_array,$rules->getRules());
 
  166                $this->assertEquals($this->correct_rules2_array_return,$rules->getRules());
 
  171                $entry = $this->parser->parseArrayFromFile(
"tests/UI/Crawler/Fixture/ProperEntry.php")[0];
 
  173                $entry[
"rules"][
'composition'] = array();
 
  174                $entry[
"rules"][
'interaction'] = array();
 
  175                $entry[
"rules"][
'wording'] = array();
 
  176                $entry[
"rules"][
'ordering'] = array();
 
  177                $entry[
"rules"][
'responsiveness'] = array();
 
  178                $entry[
"rules"][
'accessibility'] = array();
 
  181                $this->assertEquals($rules->getRules(),$entry[
"rules"]);
 
An exception for terminatinating execution or to throw for unit testing.
 
$invalid_categories1_array
 
testParseProperEntryToArray()
 
$invalid_categories2_array
 
$invalid_category_value_array
 
$invalid_category_item_array
 
testInvalidCategoryValue()
 
$correct_rules2_array_return
 
testInvalidCategoryItem()
 
Container to hold rules of UI Components.