mirror of
https://github.com/pestphp/pest.git
synced 2026-07-23 10:00:03 +02:00
feat: adds toHaveLineCountLessThan
This commit is contained in:
@@ -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