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