mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
17 lines
388 B
PHP
17 lines
388 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\ExpectationFailedException;
|
|
|
|
test('passes', function () {
|
|
expect(41)->toBeLessThan(42);
|
|
expect(4)->toBeLessThan(5);
|
|
});
|
|
|
|
test('failures', function () {
|
|
expect(4)->toBeLessThan(4);
|
|
})->throws(ExpectationFailedException::class);
|
|
|
|
test('not failures', function () {
|
|
expect(5)->not->toBeLessThan(6);
|
|
})->throws(ExpectationFailedException::class);
|