Testing Practices
  • References/PHP/PHPUnit/Guides

You can always write more tests. However, you will quickly

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

@testdox

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

assertJsonFileEqualsJsonFile() assertJsonFileEqualsJsonFile(mixed $expectedFile, mixed

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

assertStringEqualsFile() assertStringEqualsFile(string $expectedFile, string $actualString[

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

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

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

assertJsonStringEqualsJsonFile() assertJsonStringEqualsJsonFile(mixed $expectedFile,

2025-01-10 15:47:30