
ExUnit
6.1#18 in unit testingFree planFree planLinux
Visit

| Fact | ExUnit | PHPUnit |
|---|---|---|
| Assertions | ExUnit.Assertions provides macros that generate assertions with appropriate error messages. | The manual documents assertions for values, exceptions, side effects, output, files, JSON, and XML. |
| Purpose | ExUnit is a unit testing framework for Elixir. | PHPUnit is a testing framework for PHP. |
| Test assertions | ExUnit.Assertions provides macros that generate assertions with appropriate error messages. | The manual covers tests for return values, exceptions, side effects, output, and error log output. |
| Test execution | ExUnit starts tests and can run them automatically before the VM terminates. | PHPUnit provides a command-line test runner for running tests and selecting test suites. |
ExUnit suits Elixir developers writing automated unit tests, from solo developers to organizations using Elixir applications. It is for projects needing assertions, reporting, filtering, and parallel test execution.
PHP developers looking for a framework to write and run tests may find PHPUnit suitable. Its assertions, test doubles and coverage reports support a range of testing needs.