case_name
case_name
The suffix that all TestCase methods need to have to be called by run()
Code used to test Web Scrapers.
assertEqual(mixed $x, mixed $y, string $description = "")
Checks that $x and $y are the same, the result of the test is added to $this->test_case_results
mixed | $x | a first item to compare |
mixed | $y | a second item to compare |
string | $description | information about this test subcase |
assertNotEqual(mixed $x, mixed $y, string $description = "")
Checks that $x and $y are not the same, the result of the test is added to $this->test_case_results
mixed | $x | a first item to compare |
mixed | $y | a second item to compare |
string | $description | information about this test subcase |
checkTestCase()
This function uses its local variable $file_names to read in a file with a list of files to scrape. Each file is then checked against the current active list of scrapers, and the scraper label of the scraper whose signature matched against the file is determined. This label is then compared against the $correct_names array to see if the answer is as expected.