Skip to content

Commit

Permalink
Fix test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and ondrejmirtes committed Aug 28, 2024
1 parent 6d0cafb commit e3fb4af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Type/Nette/data/strings-match.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ function (string $s): void {
};

function (string $s): void {
$result = Strings::matchAll($lineContent, '~\[gallery ids=(„|")(?<allIds>([0-9]+,? ?)+)(“|")~');
assertType('list<array{0: string, 1: non-empty-string, allIds: non-empty-string, 2: non-empty-string, 3: non-empty-string, 4: non-empty-string}>', $result);
$result = Strings::matchAll($s, '~\[gallery ids=(„|")(?<allIds>([0-9]+,? ?)+)(“|")~');
assertType("list<array{0: string, 1: '"'|'', allIds: non-empty-string, 2: non-empty-string, 3: non-empty-string, 4: '"'|''}>", $result);
};

0 comments on commit e3fb4af

Please # to comment.