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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners