Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar committed Jan 2, 2024
1 parent 5aca617 commit f808005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/FeatureFlagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ public function testMatchPropertyRelativeDateOperators(): void
"key" => "abcdef",
]);
} catch (Exception $exception) {
self::assertStringContains("Failed to parse time string (abcdef) at position 0 (a): The timezone could not be found in the database", $exception->getMessage());
self::assertStringContainsString("Failed to parse time string (abcdef) at position 0 (a): The timezone could not be found in the database", $exception->getMessage());
}

$prop_b = [
Expand Down Expand Up @@ -681,15 +681,15 @@ public function testMatchPropertyRelativeDateOperators(): void
"key" => "2022-05-30",
]);
} catch (InconclusiveMatchException $exception) {
self::assertStringContains("The date set on the flag is not a valid format", $exception->getMessage());
self::assertStringContainsString("The date set on the flag is not a valid format", $exception->getMessage());
}

try {
FeatureFlag::matchProperty($prop_c, [
"key" => 1,
]);
} catch (InconclusiveMatchException $exception) {
self::assertStringContains("The date set on the flag is not a valid format", $exception->getMessage());
self::assertStringContainsString("The date set on the flag is not a valid format", $exception->getMessage());
}

// # Try all possible relative dates
Expand Down

0 comments on commit f808005

Please sign in to comment.