Skip to content

Commit

Permalink
Merge pull request #211 from Yoast/feature/equaltospecializations-min…
Browse files Browse the repository at this point in the history
…or-clean-up

EqualToSpecializations: minor clean for drop of PHPUnit < 6.x
  • Loading branch information
jrfnl authored Nov 9, 2024
2 parents 0303940 + 4f38b45 commit 826a0c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Polyfills/EqualToSpecializations.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Yoast\PHPUnitPolyfills\Polyfills;

use PHPUnit\Framework\Constraint\IsEqual;
use PHPUnit_Framework_Constraint_IsEqual;

/**
* Polyfill the Assert::equalToCanonicalizing(), Assert::equalToIgnoringCase() and
Expand All @@ -23,7 +22,7 @@ trait EqualToSpecializations {
*
* @param mixed $value Expected value for constraint.
*
* @return IsEqual|PHPUnit_Framework_Constraint_IsEqual An isEqual constraint instance.
* @return IsEqual An isEqual constraint instance.
*/
final public static function equalToCanonicalizing( $value ) {
return static::equalTo( $value, 0.0, 10, true, false );
Expand All @@ -34,7 +33,7 @@ final public static function equalToCanonicalizing( $value ) {
*
* @param mixed $value Expected value for constraint.
*
* @return IsEqual|PHPUnit_Framework_Constraint_IsEqual An isEqual constraint instance.
* @return IsEqual An isEqual constraint instance.
*/
final public static function equalToIgnoringCase( $value ) {
return static::equalTo( $value, 0.0, 10, false, true );
Expand All @@ -46,7 +45,7 @@ final public static function equalToIgnoringCase( $value ) {
* @param mixed $value Expected value for constraint.
* @param float $delta The delta to allow between the expected and the actual value.
*
* @return IsEqual|PHPUnit_Framework_Constraint_IsEqual An isEqual constraint instance.
* @return IsEqual An isEqual constraint instance.
*/
final public static function equalToWithDelta( $value, $delta ) {
return static::equalTo( $value, $delta, 10, false, false );
Expand Down

0 comments on commit 826a0c0

Please sign in to comment.