Example #1
0
 public function case_match_all_grouped_by_tuple()
 {
     $this->given($pattern = '/(💩)/u', $string = new LUT('foo 💩 bar 💩 baz'))->when($result = $string->match($pattern, $matches, $string::GROUP_BY_TUPLE, 0, true))->then->integer($result)->isEqualTo(2)->array($matches)->isEqualTo([0 => [0 => '💩', 1 => '💩'], 1 => [0 => '💩', 1 => '💩']]);
 }