示例#1
0
文件: String.php 项目: Hywan/String
 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]]);
 }