assertContains()
  • References/PHP/PHPUnit/Assertions

assertContains() assertContains(mixed $needle, Iterator|array $haystack[, string $message

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

@requires The @requires annotation can be used to skip tests when common preconditions, like the PHP Version

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

PHPUnit can perform the additional checks documented below while it executes the tests. Useless Tests

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

@expectedExceptionCode The @expectedExceptionCode annotation, in conjunction with the

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

assertClassHasAttribute() assertClassHasAttribute(string $attributeName, string $className[

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

assertEqualXMLStructure() assertEqualXMLStructure(DOMElement $expectedElement, DOMElement

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

Gerard Meszaros introduces the concept of Test Doubles in [Meszaros2007] like this:

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

@ticket

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

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

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

assertGreaterThan() assertGreaterThan(mixed $expected, mixed $actual[, string $message

2025-01-10 15:47:30