fix: package lock fingerprint

This commit is contained in:
nuno maduro
2026-07-18 01:10:01 +01:00
parent 9e79e491e2
commit 820fa08313
237 changed files with 2409 additions and 2100 deletions
@@ -2,35 +2,33 @@
use PHPUnit\Framework\ExpectationFailedException;
test('passes', function () {
expect(42)->toBeGreaterThanOrEqual(41);
expect(4)->toBeGreaterThanOrEqual(4);
test('passes', function (): void {
expect(42)->toBeGreaterThanOrEqual(41)
->and(4)->toBeGreaterThanOrEqual(4);
});
test('passes with DateTime and DateTimeImmutable', function () {
test('passes with DateTime and DateTimeImmutable', function (): void {
$now = new DateTime;
$past = (new DateTimeImmutable)->modify('-1 day');
expect($now)->toBeGreaterThanOrEqual($now);
expect($now)->toBeGreaterThanOrEqual($past);
expect($past)->not->toBeGreaterThanOrEqual($now);
expect($now)->toBeGreaterThanOrEqual($now)
->toBeGreaterThanOrEqual($past)
->and($past)->not->toBeGreaterThanOrEqual($now);
});
test('passes with strings', function () {
expect('b')->toBeGreaterThanOrEqual('a');
expect('a')->toBeGreaterThanOrEqual('a');
test('passes with strings', function (): void {
expect('b')->toBeGreaterThanOrEqual('a')
->and('a')->toBeGreaterThanOrEqual('a');
});
test('failures', function () {
test('failures', function (): void {
expect(4)->toBeGreaterThanOrEqual(4.1);
})->throws(ExpectationFailedException::class);
test('failures with custom message', function () {
test('failures with custom message', function (): void {
expect(4)->toBeGreaterThanOrEqual(4.1, 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
test('not failures', function () {
test('not failures', function (): void {
expect(5)->not->toBeGreaterThanOrEqual(5);
})->throws(ExpectationFailedException::class);