Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


After PHPUnit and all dependencies are installed successfully, our project's structure is now the following: the vendor folder containing all dependencies brought in using Composer, including PHPUnit.

Just like with PHPUnit installed using PEAR or as a PHAR file, we need to configure the location of PHPUnit in PhpStorm. In File | Settings (PhpStorm | Preferences on Mac) | Languages & Frameworks | PHP | Test Frameworks, navigate to  select the PHPUnit Local page. We can now select the Use Composer autoloader option and specify the path to the autoload.php file generated by Composer. Optionally we can specify a default PHPUnit configuration file or a PHPUnit bootstrap file to be used when running tests.