Source: nunomaduro.com

PEST v0.3 is now released!

Category: PHP, api

Now, let's see in more detail the changes we've merged into this release: When we first released Pest, we already had in mind where we wanted Pest to be: simple, minimal, and elegant in all parts of testing. The expectation API in this new version v0.3 is, in our opinion, a simpler alternative to the existing assertions API. Let's see some examples: In this first example, you can immediately see how simple is the expectations API: chained expectations, less code, and it feels like a natural sentence. In this example 2, you can see that the expectation API makes use of the not modifier for creating inverse expectations. Next, in this example 3, you can see that you can also chain assertions on different values, and also how the naming as being improved: assertStringContainsString vs toContain.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners