mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat: adds toHaveLineCountLessThan
This commit is contained in:
12
tests/Features/Expect/toHaveLineCountLessThan.php
Normal file
12
tests/Features/Expect/toHaveLineCountLessThan.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Pest\Arch\Exceptions\ArchExpectationFailedException;
|
||||
use Pest\Expectation;
|
||||
|
||||
it('passes', function () {
|
||||
expect(Expectation::class)->toHaveLineCountLessThan(1000);
|
||||
});
|
||||
|
||||
it('fails', function () {
|
||||
expect(Expectation::class)->toHaveLineCountLessThan(10);
|
||||
})->throws(ArchExpectationFailedException::class);
|
||||
Reference in New Issue
Block a user