Incomplete and Skipped Tests
  • References/PHP/PHPUnit/Guides

Incomplete Tests When you are working on a new test case class, you might want to begin by writing empty test methods such

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

One of the most time-consuming parts of writing tests is writing the code to set the world up in a known state and then return it to its original state when the test is complete

2025-01-10 15:47:30
The Command-Line Test Runner
  • References/PHP/PHPUnit/Guides

The PHPUnit command-line test runner can be invoked through the phpunit command. The following code shows how to run tests with the PHPUnit command-line

2025-01-10 15:47:30
The XML Configuration File
  • References/PHP/PHPUnit/Guides

PHPUnit The attributes of the <phpunit> element can be used to configure PHPUnit's core

2025-01-10 15:47:30
Code Coverage Analysis
  • References/PHP/PHPUnit/Guides

In computer science, code coverage is a measure used to

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

PHPUnit can produce several types of logfiles. Test Results (XML) The XML logfile for test

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
Testing Practices
  • References/PHP/PHPUnit/Guides

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

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
Extending PHPUnit
  • References/PHP/PHPUnit/Guides

PHPUnit can be extended in various ways to make the writing of tests easier and customize the feedback you get from running tests. Here are common starting points to extend

2025-01-10 15:47:30