Skip to content

Commit

Permalink
RequirementsCheckerTest: pass the correct type
Browse files Browse the repository at this point in the history
Not that it really matters in this case as strict types is not being used, so an int will juggle to a string just fine, but still.
  • Loading branch information
jrfnl committed Dec 22, 2023
1 parent b4c055d commit b36948a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/RequirementsCheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function testIfRequirementExists() {
* @return void
*/
public function testCheckIfPHPRequirementIsNotFulfilled() {
$checker = new RequirementsChecker( array( 'php' => 4 ) );
$checker = new RequirementsChecker( array( 'php' => '4' ) );

$checker->addRequirement( new VersionRequirement( 'php', '5.6' ) );
$checker->check();
Expand Down Expand Up @@ -189,7 +189,7 @@ public function testCheckIfRequirementIsFulfilled() {
* @return void
*/
public function testCheckIfRequirementIsNotFulfilled() {
$checker = new RequirementsChecker( array( 'mysql' => 4 ) );
$checker = new RequirementsChecker( array( 'mysql' => '4' ) );

$checker->addRequirement( new VersionRequirement( 'mysql', '5.6' ) );
$checker->check();
Expand All @@ -215,7 +215,7 @@ public function testCheckIfRequirementIsNotFulfilled() {
* @return void
*/
public function testCheckIfRequirementIsFulfilledWithSpecificComparison() {
$checker = new RequirementsChecker( array( 'php' => 4 ) );
$checker = new RequirementsChecker( array( 'php' => '4' ) );

$checker->addRequirement( new VersionRequirement( 'php', '5.2', '<' ) );
$checker->check();
Expand All @@ -233,7 +233,7 @@ public function testCheckIfRequirementIsFulfilledWithSpecificComparison() {
* @return void
*/
public function testCheckIfRequirementIsNotFulfilledWithSpecificComparison() {
$checker = new RequirementsChecker( array( 'php' => 4 ) );
$checker = new RequirementsChecker( array( 'php' => '4' ) );

$checker->addRequirement( new VersionRequirement( 'php', '5.2', '>=' ) );
$checker->check();
Expand Down

0 comments on commit b36948a

Please sign in to comment.