oliverdavies.uk/content/node.c7423f08-eb5a-4602-b85f-9b4691efe3ab.yml

84 lines
2.1 KiB
YAML

uuid:
- value: c7423f08-eb5a-4602-b85f-9b4691efe3ab
langcode:
- value: en
type:
- target_id: daily_email
target_type: node_type
target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7
revision_timestamp:
- value: '2025-05-11T09:00:05+00:00'
revision_uid:
- target_type: user
target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849
revision_log: { }
status:
- value: true
uid:
- target_type: user
target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849
title:
- value: 'PHPUnit or Pest?'
created:
- value: '2024-10-19T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:05+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2024/10/19/phpunit-or-pest
langcode: en
body:
- value: |
<p>This is a common question from people starting to write automated tests in PHP:</p>
<blockquote>
<p>Should I use PHPUnit or Pest PHP?</p>
</blockquote>
<p>I've used both.</p>
<p>They both have pros and cons.</p>
<p>If you're familiar with JavaScript and Jest, Pest would probably be a natural fit.</p>
<p>If you're used to writing classes in PHP, PHPUnit may feel more familiar.</p>
<p>Use whichever appeals to you.</p>
<p>Maybe try both and see which you prefer.</p>
<p>The main benefit will be you have tests, whichever you decide to use.</p>
format: full_html
processed: |
<p>This is a common question from people starting to write automated tests in PHP:</p>
<blockquote>
<p>Should I use PHPUnit or Pest PHP?</p>
</blockquote>
<p>I've used both.</p>
<p>They both have pros and cons.</p>
<p>If you're familiar with JavaScript and Jest, Pest would probably be a natural fit.</p>
<p>If you're used to writing classes in PHP, PHPUnit may feel more familiar.</p>
<p>Use whichever appeals to you.</p>
<p>Maybe try both and see which you prefer.</p>
<p>The main benefit will be you have tests, whichever you decide to use.</p>
summary: null
field_daily_email_cta: { }