From 770bcb88d0df4e9ff99007bef678aac2a90cded6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 21 Oct 2024 00:14:05 +0100 Subject: [PATCH] Add daily email for 2024-10-19 PHPUnit or Pest? --- source/_daily_emails/2024-10-19.md | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 source/_daily_emails/2024-10-19.md diff --git a/source/_daily_emails/2024-10-19.md b/source/_daily_emails/2024-10-19.md new file mode 100644 index 00000000..dec7a29e --- /dev/null +++ b/source/_daily_emails/2024-10-19.md @@ -0,0 +1,31 @@ +--- +title: PHPUnit or Pest? +date: 2024-10-19 +permalink: daily/2024/10/19/phpunit-or-pest +tags: + - software-development + - php + - automated-testing + - test-driven-development +cta: ~ +snippet: | + PHPUnit or Pest? Which do you prefer? +--- + +This is a common question from people starting to write automated tests in PHP: + +> Should I use PHPUnit or Pest PHP? + +I've used both. + +They both have pros and cons. + +If you're familiar with JavaScript and Jest, Pest would probably be a natural fit. + +If you're used to writing classes in PHP, PHPUnit may feel more familiar. + +Use whichever appeals to you. + +Maybe try both and see which you prefer. + +The main benefit will be you have tests, whichever you decide to use.