mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
13 lines
413 B
PHP
13 lines
413 B
PHP
<?php
|
|
|
|
use Pest\Arch\Exceptions\ArchExpectationFailedException;
|
|
use Tests\Fixtures\Arch\ToHavePublicMethodsBesides\UserController;
|
|
|
|
test('pass', function () {
|
|
expect(UserController::class)->not->toHaveProtectedMethodsBesides(['protectedMethod']);
|
|
});
|
|
|
|
test('failures', function () {
|
|
expect(UserController::class)->not->toHaveProtectedMethodsBesides([]);
|
|
})->throws(ArchExpectationFailedException::class);
|