@@ -766,12 +766,12 @@ public function testBeforeAfter(string $expected, string $needle, string $origin
766
766
public static function provideBeforeAfter ()
767
767
{
768
768
return [
769
- ['' , '' , 'hello world ' , 0 , true ],
770
- ['' , '' , 'hello world ' , 0 , false ],
771
- ['' , 'w ' , 'hello World ' , 0 , true ],
772
- ['' , 'w ' , 'hello World ' , 0 , false ],
773
- ['' , 'o ' , 'hello world ' , 10 , true ],
774
- ['' , 'o ' , 'hello world ' , 10 , false ],
769
+ ['hello world ' , '' , 'hello world ' , 0 , true ],
770
+ ['hello world ' , '' , 'hello world ' , 0 , false ],
771
+ ['hello World ' , 'w ' , 'hello World ' , 0 , true ],
772
+ ['hello World ' , 'w ' , 'hello World ' , 0 , false ],
773
+ ['hello world ' , 'o ' , 'hello world ' , 10 , true ],
774
+ ['hello world ' , 'o ' , 'hello world ' , 10 , false ],
775
775
['hello ' , 'w ' , 'hello world ' , 0 , true ],
776
776
['world ' , 'w ' , 'hello world ' , 0 , false ],
777
777
['hello W ' , 'O ' , 'hello WORLD ' , 0 , true ],
@@ -794,12 +794,12 @@ public function testBeforeAfterIgnoreCase(string $expected, string $needle, stri
794
794
public static function provideBeforeAfterIgnoreCase ()
795
795
{
796
796
return [
797
- ['' , '' , 'hello world ' , 0 , true ],
798
- ['' , '' , 'hello world ' , 0 , false ],
799
- ['' , 'foo ' , 'hello world ' , 0 , true ],
800
- ['' , 'foo ' , 'hello world ' , 0 , false ],
801
- ['' , 'o ' , 'hello world ' , 10 , true ],
802
- ['' , 'o ' , 'hello world ' , 10 , false ],
797
+ ['hello world ' , '' , 'hello world ' , 0 , true ],
798
+ ['hello world ' , '' , 'hello world ' , 0 , false ],
799
+ ['hello world ' , 'foo ' , 'hello world ' , 0 , true ],
800
+ ['hello world ' , 'foo ' , 'hello world ' , 0 , false ],
801
+ ['hello world ' , 'o ' , 'hello world ' , 10 , true ],
802
+ ['hello world ' , 'o ' , 'hello world ' , 10 , false ],
803
803
['hello ' , 'w ' , 'hello world ' , 0 , true ],
804
804
['world ' , 'w ' , 'hello world ' , 0 , false ],
805
805
['hello ' , 'W ' , 'hello world ' , 0 , true ],
@@ -822,12 +822,12 @@ public function testBeforeAfterLast(string $expected, string $needle, string $or
822
822
public static function provideBeforeAfterLast ()
823
823
{
824
824
return [
825
- ['' , '' , 'hello world ' , 0 , true ],
826
- ['' , '' , 'hello world ' , 0 , false ],
827
- ['' , 'L ' , 'hello world ' , 0 , true ],
828
- ['' , 'L ' , 'hello world ' , 0 , false ],
829
- ['' , 'o ' , 'hello world ' , 10 , true ],
830
- ['' , 'o ' , 'hello world ' , 10 , false ],
825
+ ['hello world ' , '' , 'hello world ' , 0 , true ],
826
+ ['hello world ' , '' , 'hello world ' , 0 , false ],
827
+ ['hello world ' , 'L ' , 'hello world ' , 0 , true ],
828
+ ['hello world ' , 'L ' , 'hello world ' , 0 , false ],
829
+ ['hello world ' , 'o ' , 'hello world ' , 10 , true ],
830
+ ['hello world ' , 'o ' , 'hello world ' , 10 , false ],
831
831
['hello wor ' , 'l ' , 'hello world ' , 0 , true ],
832
832
['ld ' , 'l ' , 'hello world ' , 0 , false ],
833
833
['hello w ' , 'o ' , 'hello world ' , 0 , true ],
@@ -851,12 +851,12 @@ public function testBeforeAfterLastIgnoreCase(string $expected, string $needle,
851
851
public static function provideBeforeAfterLastIgnoreCase ()
852
852
{
853
853
return [
854
- ['' , '' , 'hello world ' , 0 , true ],
855
- ['' , '' , 'hello world ' , 0 , false ],
856
- ['' , 'FOO ' , 'hello world ' , 0 , true ],
857
- ['' , 'FOO ' , 'hello world ' , 0 , false ],
858
- ['' , 'o ' , 'hello world ' , 10 , true ],
859
- ['' , 'o ' , 'hello world ' , 10 , false ],
854
+ ['hello world ' , '' , 'hello world ' , 0 , true ],
855
+ ['hello world ' , '' , 'hello world ' , 0 , false ],
856
+ ['hello world ' , 'FOO ' , 'hello world ' , 0 , true ],
857
+ ['hello world ' , 'FOO ' , 'hello world ' , 0 , false ],
858
+ ['hello world ' , 'o ' , 'hello world ' , 10 , true ],
859
+ ['hello world ' , 'o ' , 'hello world ' , 10 , false ],
860
860
['hello wor ' , 'l ' , 'hello world ' , 0 , true ],
861
861
['ld ' , 'l ' , 'hello world ' , 0 , false ],
862
862
['hello wor ' , 'L ' , 'hello world ' , 0 , true ],
0 commit comments