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