mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
13 lines
407 B
PHP
13 lines
407 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->toHavePrivateMethodsBesides([]);
|
|
})->throws(ArchExpectationFailedException::class);
|