Skip to content

Instantly share code, notes, and snippets.

@mmouih
Last active January 5, 2024 01:18
Show Gist options
  • Save mmouih/d9112dbf8e56aa7979f92c4b3a27c32a to your computer and use it in GitHub Desktop.
Save mmouih/d9112dbf8e56aa7979f92c4b3a27c32a to your computer and use it in GitHub Desktop.
Payloads Test
<?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