mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
feat: toHaveAllMethodsDocumented and toHaveAllPropertiesDocumented
This commit is contained in:
13
tests/Features/Expect/toHaveAllMethodsDocumented.php
Normal file
13
tests/Features/Expect/toHaveAllMethodsDocumented.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Pest\Arch\Exceptions\ArchExpectationFailedException;
|
||||
use Pest\Expectation;
|
||||
use Tests\Fixtures\Inheritance\ExampleTest;
|
||||
|
||||
it('passes', function () {
|
||||
expect(Expectation::class)->toHaveAllMethodsDocumented();
|
||||
});
|
||||
|
||||
it('fails', function () {
|
||||
expect(ExampleTest::class)->toHaveAllMethodsDocumented();
|
||||
})->throws(ArchExpectationFailedException::class);
|
||||
Reference in New Issue
Block a user