feat: adds toHaveLineCountLessThan

This commit is contained in:
Nuno Maduro
2024-07-18 20:43:39 +01:00
parent 135c8a0d46
commit 2e411893d2
5 changed files with 39 additions and 2 deletions

View 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);