case_name
case_name
The suffix that all TestCase methods need to have to be called by run()
UnitTest for the WebArchive class. A web archive is used to store array-based objects persistently to a file. This class tests storing and retrieving from such an archive.
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 |
reloadArchiveTestCase()
If the file associated with a web archive already exists when the constructor is called, then the constructor will load the existing web archive. This test case checks this functionality by adding six items to a web archive, then constructing a new WebArchive object using the same file name and seeing if we can read the objects that were just inserted.