Skip to content

Commit 795d41f

Browse files
Merge branch '11.5'
2 parents 0562f48 + cd34f9e commit 795d41f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/Framework/Assert.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -553,21 +553,21 @@ final public static function assertNotEmpty(mixed $actual, string $message = '')
553553
*
554554
* @throws ExpectationFailedException
555555
*/
556-
final public static function assertGreaterThan(mixed $expected, mixed $actual, string $message = ''): void
556+
final public static function assertGreaterThan(mixed $minimum, mixed $actual, string $message = ''): void
557557
{
558-
self::assertThat($actual, self::greaterThan($expected), $message);
558+
self::assertThat($actual, self::greaterThan($minimum), $message);
559559
}
560560

561561
/**
562562
* Asserts that a value is greater than or equal to another value.
563563
*
564564
* @throws ExpectationFailedException
565565
*/
566-
final public static function assertGreaterThanOrEqual(mixed $expected, mixed $actual, string $message = ''): void
566+
final public static function assertGreaterThanOrEqual(mixed $minimum, mixed $actual, string $message = ''): void
567567
{
568568
self::assertThat(
569569
$actual,
570-
self::greaterThanOrEqual($expected),
570+
self::greaterThanOrEqual($minimum),
571571
$message,
572572
);
573573
}
@@ -577,19 +577,19 @@ final public static function assertGreaterThanOrEqual(mixed $expected, mixed $ac
577577
*
578578
* @throws ExpectationFailedException
579579
*/
580-
final public static function assertLessThan(mixed $expected, mixed $actual, string $message = ''): void
580+
final public static function assertLessThan(mixed $maximum, mixed $actual, string $message = ''): void
581581
{
582-
self::assertThat($actual, self::lessThan($expected), $message);
582+
self::assertThat($actual, self::lessThan($maximum), $message);
583583
}
584584

585585
/**
586586
* Asserts that a value is smaller than or equal to another value.
587587
*
588588
* @throws ExpectationFailedException
589589
*/
590-
final public static function assertLessThanOrEqual(mixed $expected, mixed $actual, string $message = ''): void
590+
final public static function assertLessThanOrEqual(mixed $maximum, mixed $actual, string $message = ''): void
591591
{
592-
self::assertThat($actual, self::lessThanOrEqual($expected), $message);
592+
self::assertThat($actual, self::lessThanOrEqual($maximum), $message);
593593
}
594594

595595
/**

src/Framework/Assert/Functions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ function assertNotEmpty(mixed $actual, string $message = ''): void
576576
*
577577
* @see Assert::assertGreaterThan
578578
*/
579-
function assertGreaterThan(mixed $expected, mixed $actual, string $message = ''): void
579+
function assertGreaterThan(mixed $minimum, mixed $actual, string $message = ''): void
580580
{
581581
Assert::assertGreaterThan(...func_get_args());
582582
}
@@ -592,7 +592,7 @@ function assertGreaterThan(mixed $expected, mixed $actual, string $message = '')
592592
*
593593
* @see Assert::assertGreaterThanOrEqual
594594
*/
595-
function assertGreaterThanOrEqual(mixed $expected, mixed $actual, string $message = ''): void
595+
function assertGreaterThanOrEqual(mixed $minimum, mixed $actual, string $message = ''): void
596596
{
597597
Assert::assertGreaterThanOrEqual(...func_get_args());
598598
}
@@ -608,7 +608,7 @@ function assertGreaterThanOrEqual(mixed $expected, mixed $actual, string $messag
608608
*
609609
* @see Assert::assertLessThan
610610
*/
611-
function assertLessThan(mixed $expected, mixed $actual, string $message = ''): void
611+
function assertLessThan(mixed $maximum, mixed $actual, string $message = ''): void
612612
{
613613
Assert::assertLessThan(...func_get_args());
614614
}
@@ -624,7 +624,7 @@ function assertLessThan(mixed $expected, mixed $actual, string $message = ''): v
624624
*
625625
* @see Assert::assertLessThanOrEqual
626626
*/
627-
function assertLessThanOrEqual(mixed $expected, mixed $actual, string $message = ''): void
627+
function assertLessThanOrEqual(mixed $maximum, mixed $actual, string $message = ''): void
628628
{
629629
Assert::assertLessThanOrEqual(...func_get_args());
630630
}

0 commit comments

Comments
 (0)