assertLessThan()
  • References/PHP/PHPUnit/Assertions

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

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

assertXmlFileEqualsXmlFile() assertXmlFileEqualsXmlFile(string $expectedFile, string

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
assertFileExists()
  • References/PHP/PHPUnit/Assertions

assertFileExists() assertFileExists(string $filename[, string $message = ''])

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
assertInfinite()
  • References/PHP/PHPUnit/Assertions

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

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

Example 2.1 shows how we can write tests using PHPUnit that exercise PHP's array operations. The example introduces the basic conventions and steps for writing tests with

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
assertContains()
  • References/PHP/PHPUnit/Assertions

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

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

@uses The @uses annotation specifies code which will be executed by a test, but is not intended to be covered

2025-01-10 15:47:30