Last active
January 5, 2024 01:18
-
-
Save mmouih/d9112dbf8e56aa7979f92c4b3a27c32a to your computer and use it in GitHub Desktop.
Payloads Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Payload\PayloadInterface; | |
arch('Payloads should be readonly') | |
->expect('App\Payload') | |
->classes() | |
->toBeReadonly(); | |
arch('Payloads must implement ' . PayloadInterface::class) | |
->expect('App\Payload') | |
->classes() | |
->toImplement(PayloadInterface::class); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment