public function case_split_with_offset() { $this->given($string = new LUT('❤️💩❤️💩❤️'))->when($result = $string->split('/💩/', -1, $string::WITH_OFFSET))->then->array($result)->isEqualTo([0 => [0 => '❤️', 1 => 0], 1 => [0 => '❤️', 1 => 10], 2 => [0 => '❤️', 1 => 20]]); }