@backupGlobals The backup and restore operations for global variables can be completely disabled for all tests of a test case class like this
@expectedExceptionMessage The @expectedExceptionMessage annotation works similar to @e
@after The @after annotation can be used to specify methods that should be called after each test method in a
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
assertTrue() assertTrue(bool $condition[, string $message = ''])
The PHPUnit command-line test runner can be invoked through the phpunit command. The following code shows how to run tests with the PHPUnit command-line
@group A test can be tagged as belonging to one or more groups using the @group annotation like this
assertFileEquals() assertFileEquals(string $expected, string $actual[, string $message
assertStringEqualsFile() assertStringEqualsFile(string $expectedFile, string $actualString[
assertStringMatchesFormat() assertStringMatchesFormat(string $format, string $string[
Page 2 of 9