Installing PHPUnit
  • References/PHP/PHPUnit/Guides

Requirements PHPUnit 5.6 requires PHP 5.6; using the latest version of PHP is highly recommended.

2025-01-10 15:47:30
@depends
  • References/PHP/PHPUnit/Annotations

@depends PHPUnit supports the declaration of explicit dependencies between test methods. Such dependencies do not define the order in which

2025-01-10 15:47:30
assertNan()
  • References/PHP/PHPUnit/Assertions

assertNan() assertNan(mixed $variable[, string $message = ''])

2025-01-10 15:47:30
Logging
  • References/PHP/PHPUnit/Guides

PHPUnit can produce several types of logfiles. Test Results (XML) The XML logfile for test

2025-01-10 15:47:30
@author
  • References/PHP/PHPUnit/Annotations

@author The @author annotation is an alias for the @group annotation (see

2025-01-10 15:47:30
@expectedException
  • References/PHP/PHPUnit/Annotations

@expectedException Example 2.10 shows how to use the @expectedException annotation to test whether an exception

2025-01-10 15:47:30
assertStringMatchesFormat()
  • References/PHP/PHPUnit/Assertions

assertStringMatchesFormat() assertStringMatchesFormat(string $format, string $string[

2025-01-10 15:47:30
assertFileEquals()
  • References/PHP/PHPUnit/Assertions

assertFileEquals() assertFileEquals(string $expected, string $actual[, string $message

2025-01-10 15:47:30
Testing Practices
  • References/PHP/PHPUnit/Guides

You can always write more tests. However, you will quickly

2025-01-10 15:47:30
@backupStaticAttributes
  • References/PHP/PHPUnit/Annotations

@backupStaticAttributes The @backupStaticAttributes annotation can be used to back up all static property values

2025-01-10 15:47:30