case_name
case_name
The suffix that all TestCase methods need to have to be called by run()
Used to test the PriorityQueue class that is used to figure out which URL to crawl next
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 |
maxQueueTestCase()
Insert five items into a priority queue. Checks that the resulting heap array matches the expected array calculated by hand. Weights of some elements of the queue are adjusted and the resulting heap array checked again. The results of polling the queue and normalizing the queue are tested