Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Apr 7, 2023
1 parent 5788673 commit 0de4993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Feature/CleanRegex/match/Detail/get/DetailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function shouldThrow_forInvalidGroup()
public function shouldGetGroup_validName(string $name)
{
// given
$pattern = Pattern("(?<$name>Bar){0}");
$pattern = Pattern::of("(?<$name>Bar){0}");
$detail = $pattern->match('Foo')->first();
// then
$this->expectException(GroupNotMatchedException::class);
Expand Down
2 changes: 1 addition & 1 deletion test/Feature/CleanRegex/match/Detail/group/DetailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function shouldGetThreeDigitGroup()
{
// given
$groups = \str_repeat('()', 100);
$pattern = Pattern("$groups(Foo)");
$pattern = Pattern::of("$groups(Foo)");
$detail = $pattern->match('Foo')->first();
// when
$group = $detail->group(101);
Expand Down

0 comments on commit 0de4993

Please sign in to comment.