@small
  • References/PHP/PHPUnit/Annotations

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

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
@runTestsInSeparateProcesses
  • References/PHP/PHPUnit/Annotations

@runTestsInSeparateProcesses Indicates that all tests in a test class should be run in a separate PHP process.

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
@testdox
  • References/PHP/PHPUnit/Annotations

@testdox

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

assertArraySubset() assertArraySubset(array $subset, array $array[, bool $strict = ''

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

@preserveGlobalState When a test is run in a separate process, PHPUnit will attempt to preserve the global state from the parent process by

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

Once you get used to writing automated tests, you will likely discover more uses for tests. Here are some examples. Agile Documentation

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

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

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