mirror of
https://github.com/pestphp/pest.git
synced 2026-04-20 22:20:17 +02:00
13 lines
398 B
PHP
13 lines
398 B
PHP
<?php
|
|
|
|
use Pest\Arch\Exceptions\ArchExpectationFailedException;
|
|
use Tests\Fixtures\Arch\ToHavePublicMethodsBesides\UserController;
|
|
|
|
test('pass', function () {
|
|
expect(UserController::class)->not->toHavePrivateMethodsBesides(['privateMethod']);
|
|
});
|
|
|
|
test('failures', function () {
|
|
expect(UserController::class)->not->toHavePrivateMethods();
|
|
})->throws(ArchExpectationFailedException::class);
|