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
+12 -10
View File
@@ -1,43 +1,45 @@
<?php
declare(strict_types=1);
use PHPUnit\Framework\ExpectationFailedException;
test('passes with int', function () {
test('passes with int', function (): void {
expect(2)->toBeBetween(1, 3);
});
test('passes with float', function () {
test('passes with float', function (): void {
expect(1.5)->toBeBetween(1.25, 1.75);
});
test('passes with float and int', function () {
test('passes with float and int', function (): void {
expect(1.5)->toBeBetween(1, 2);
});
test('passes with DateTime', function () {
test('passes with DateTime', function (): void {
expect(new DateTime('2023-09-22'))->toBeBetween(new DateTime('2023-09-21'), new DateTime('2023-09-23'));
});
test('failure with int', function () {
test('failure with int', function (): void {
expect(4)->toBeBetween(1, 3);
})->throws(ExpectationFailedException::class);
test('failure with float', function () {
test('failure with float', function (): void {
expect(2)->toBeBetween(1.5, 1.75);
})->throws(ExpectationFailedException::class);
test('failure with float and int', function () {
test('failure with float and int', function (): void {
expect(2.1)->toBeBetween(1, 2);
})->throws(ExpectationFailedException::class);
test('failure with DateTime', function () {
test('failure with DateTime', function (): void {
expect(new DateTime('2023-09-20'))->toBeBetween(new DateTime('2023-09-21'), new DateTime('2023-09-23'));
})->throws(ExpectationFailedException::class);
test('failures with custom message', function () {
test('failures with custom message', function (): void {
expect(4)->toBeBetween(1, 3, 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
test('not failures', function () {
test('not failures', function (): void {
expect(2)->not->toBeBetween(1, 3);
})->throws(ExpectationFailedException::class);