mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
15 lines
548 B
Markdown
15 lines
548 B
Markdown
---
|
|
title: 'Use skip() when writing tests ahead of time'
|
|
tweet_id: '1479467933705195521'
|
|
thread_slug: weekly-thread-2022-01
|
|
author_username: bhaidar
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FHNHgg4VgAAFSzE.jpg'
|
|
created_at: 2022-01-07T15:00:17+00:00
|
|
slug: use-skip-when-writing-tests-ahead-of-time
|
|
---
|
|
🌶️ #Laravel #pestphp tip
|
|
|
|
If you like to plan your tests ahead of time and implement them one by one, you can always make use of a handy method `skip()` to tell the test runner to ignore those empty tests.
|
|
|
|
`skip()` accepts a callback too!
|