case_name
case_name
The suffix that all TestCase methods need to have to be called by run()
Used to test that the PhraseParser class. Want to make sure bigram extracting works correctly
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 |
computeSafeSearchScoreTestCase()
Checks whether the same search threshold can classify porn from non-porn sites. Sample were taken from a couple porn sites, sorted alphabetically by word and then some of the non sensitive words were substituted so as to avoid copyright issues. For the safe tests a similar process was done with the Wizard of Oz (now public domain) and with some sexually related Wikipedia articles (Creative Commons SA).