Skip to content

Commit

Permalink
More formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Aug 27, 2024
1 parent 5c683f3 commit a2df851
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/FlagsmithClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,10 @@ public function testCannotUseDefaultHandlerAndOfflineHandler()
$this->expectException(ValueError::class);
$this->expectExceptionMessage('Cannot use both defaultFlagHandler and offlineHandler.');

$offlineHandler = new FakeOfflineHandler();

// When
new Flagsmith(defaultFlagHandler:$defaultFlagHandler, offlineHandler:new FakeOfflineHandler());
new Flagsmith(defaultFlagHandler:$defaultFlagHandler, offlineHandler:$offlineHandler);
}

public function testCannotCreateFlagsmithClientInRemoteEvaluationWithoutApiKey()
Expand All @@ -425,7 +427,8 @@ public function testOfflineHandlerUsedAsFallbackForLocalEvaluation()
->build()
);

$flagsmith = (new Flagsmith(apiKey:'ser.some-key', environmentTtl:3, offlineHandler:new FakeOfflineHandler()));
$offlineHandler = new FakeOfflineHandler();
$flagsmith = (new Flagsmith(apiKey:'ser.some-key', environmentTtl:3, offlineHandler:$offlineHandler));

// When
$environmentFlags = $flagsmith->getEnvironmentFlags();
Expand Down

0 comments on commit a2df851

Please sign in to comment.