Skip to content

Instantly share code, notes, and snippets.

View adrianspacely's full-sized avatar
🍝
Somebody touch'ah my spaghet!

Adrian Brown adrianspacely

🍝
Somebody touch'ah my spaghet!
View GitHub Profile
@adrianspacely
adrianspacely / 1. TestCase.php
Created January 17, 2022 01:04
How I add "private functions" to a pest test file.
<?php
#
# 1. Add the Macroable trait to your base test.
#
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Illuminate\Support\Traits\Macroable;