@coversNothing
  • References/PHP/PHPUnit/Annotations

@coversNothing The @coversNothing annotation can be used in the test code to specify that no code coverage information

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

assertEmpty() assertEmpty(mixed $actual[, string $message = ''])

2025-01-10 15:47:30
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