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

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

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

@backupStaticAttributes The @backupStaticAttributes annotation can be used to back up all static property values

2025-01-10 15:47:30
@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
@test
  • References/PHP/PHPUnit/Annotations

@test As an alternative to prefixing your test method names with test, you can use the @test

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

assertDirectoryExists() assertDirectoryExists(string $directory[, string $message = ''])

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

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

2025-01-10 15:47:30