One of the most time-consuming parts of writing tests is writing the code to set the world up in a known state and then return it to its original state when the test is complete
In computer science, code coverage is a measure used to
Incomplete Tests When you are working on a new test case class, you might want to begin by writing empty test methods such
@after The @after annotation can be used to specify methods that should be called after each test method in a
@group A test can be tagged as belonging to one or more groups using the @group annotation like this
@backupGlobals The backup and restore operations for global variables can be completely disabled for all tests of a test case class like this
assertInstanceOf() assertInstanceOf($expected, $actual[, $message = ''])
@small The @small annotation is an alias for @group small. A small test must not
@runTestsInSeparateProcesses Indicates that all tests in a test class should be run in a separate PHP process.
assertArraySubset() assertArraySubset(array $subset, array $array[, bool $strict = ''
Page 2 of 9