Fixtures
  • References/PHP/PHPUnit/Guides

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

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

assertInstanceOf() assertInstanceOf($expected, $actual[, $message = ''])

2025-01-10 15:47:30
Code Coverage Analysis
  • References/PHP/PHPUnit/Guides

In computer science, code coverage is a measure used to

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

assertContainsOnlyInstancesOf() assertContainsOnlyInstancesOf(string $classname, Traversable|array

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

@medium The @medium annotation is an alias for @group medium. A medium test must

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

assertDirectoryIsWritable() assertDirectoryIsWritable(string $directory[, string $message

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

@backupGlobals The backup and restore operations for global variables can be completely disabled for all tests of a test case class like this

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

assertTrue() assertTrue(bool $condition[, string $message = ''])

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

@group A test can be tagged as belonging to one or more groups using the @group annotation like this

2025-01-10 15:47:30
The XML Configuration File
  • References/PHP/PHPUnit/Guides

PHPUnit The attributes of the <phpunit> element can be used to configure PHPUnit's core

2025-01-10 15:47:30