Pest is a new testing PHP Framework developed by Nuno Maduro. While Pest itself is built on top of PHPUnit, the popular and widely adopted PHP testing framework, Pest aims to provide a better experience for writing tests. The philosophy is simple. Keep the TDD experience simple and elegant by providing expressive interfaces.
In this tutorial, we’ll be looking at how to get started using Pest in a Laravel project. Using the test-driven approach, we’ll be building a simple to-do application that allows you to create, edit, update and delete tasks.
- PHP version 7.3 or higher. Pest requires PHP 7.3+ to work.
- Laravel 8.
- A basic understanding of PHPUnit.
- A basic understanding of SQLite. We’ll be making use of SQLite because it makes running our tests faster.
Set up Laravel
There are different ways to set up a new Laravel project. You can …