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. Make sure you are running TYPO3 >= 4.5.0 and PHP >= 5.3.0 (PHP >= 5.3.9 is recommended).
  2. 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.
  3. Use the Extension Manager to download and install phpunit.
  4. 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 local PHPUnit package installed via Composer, please make sure you have installed all necessary packages. Please add at least "phpunit/phpunit", "phpunit/phpunit-selenium" and "mikey179/vfsStream". This is necessary to avoid problems with the PHPUnit and Composer autoloader.