Skip to content

Commit

Permalink
Use Assert::matches()
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed May 18, 2023
1 parent 99e6505 commit b6ad76e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public function raises_error_when_non_existant_directory_is_given() {
public function session_identifiers_consist_of_32_lowercase_hex_digits() {
$sessions= $this->fixture();
$id= $sessions->create()->id();
Assert::true((bool)preg_match('/^[a-f0-9]{32}$/i', $id), $id);
Assert::matches('/^[a-f0-9]{32}$/i', $id);
}
}

0 comments on commit b6ad76e

Please sign in to comment.