DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

InstallationΒΆ

These are basic requirements for using this extension:

  1. On rpm based systems, like Fedora and RHEL, you need the packages php- process and php-posix in addition to the normal list of PHP extensions.
  2. Use the Extension Manager to download and install phpunit.
  3. View the extension's options in the Extension Manager and save them at least once.

If you would like to run the unit tests of the phpunit extension itself, you'll also need to install the following dummy extension which are located in EXT:phpunit/TestExtensions/:

  • aaa
  • bbb
  • ccc
  • ddd
  • user_phpunittest
  • user_phpunittest2

For running database tests, you'll also need to provide the TYPO3 MySQL user with the following global permissions:

  • SELECT
  • INSERT
  • CREATE
  • DROP
  • ALTER

If you would like to use a different PHPUnit version, make sure you install TYPO3 and the phpunit extension via composer and specify the desired PHPUnit version in your root composer.json file.