Installation
Requirements: PHP 8.1+
Installing Pest PHP Testing Framework is a simple process that can be completed in just a few steps. Before you begin, make sure you have PHP 8.1+
or higher installed on your system.
The first step is to require Pest as a "dev" dependency in your project by running the following command on your command line.
1composer require pestphp/pest --dev --with-all-dependencies
Secondly, you'll need to initialize Pest in your current PHP project. This step will create a configuration file named Pest.php
at the root level of your test suite, which will enable you to fine-tune your test suite later.
1./vendor/bin/pest --init
Finally, you can run your tests by executing the pest
command.
1./vendor/bin/pest
Here is an example of the output displayed when running Pest in a new, fresh project.

After the installation process is finished, you can enhance your developer experience while working with Pest by configuring your editor: Editor Setup →