@@ -60,6 +60,7 @@ public function testStartsWith()
60
60
$ this ->assertTrue (Str::startsWith ('0123 ' , 0 ));
61
61
$ this ->assertFalse (Str::startsWith ('jason ' , 'J ' ));
62
62
$ this ->assertFalse (Str::startsWith ('jason ' , '' ));
63
+ $ this ->assertFalse (Str::startsWith ('' , '' ));
63
64
$ this ->assertFalse (Str::startsWith ('7 ' , ' 7 ' ));
64
65
$ this ->assertTrue (Str::startsWith ('7a ' , '7 ' ));
65
66
$ this ->assertTrue (Str::startsWith ('7a ' , 7 ));
@@ -87,6 +88,7 @@ public function testEndsWith()
87
88
$ this ->assertFalse (Str::endsWith ('jason ' , 'no ' ));
88
89
$ this ->assertFalse (Str::endsWith ('jason ' , ['no ' ]));
89
90
$ this ->assertFalse (Str::endsWith ('jason ' , '' ));
91
+ $ this ->assertFalse (Str::endsWith ('' , '' ));
90
92
$ this ->assertFalse (Str::endsWith ('jason ' , [null ]));
91
93
$ this ->assertFalse (Str::endsWith ('jason ' , null ));
92
94
$ this ->assertFalse (Str::endsWith ('jason ' , 'N ' ));
@@ -183,6 +185,7 @@ public function testStrContains()
183
185
$ this ->assertFalse (Str::contains ('taylor ' , 'xxx ' ));
184
186
$ this ->assertFalse (Str::contains ('taylor ' , ['xxx ' ]));
185
187
$ this ->assertFalse (Str::contains ('taylor ' , '' ));
188
+ $ this ->assertFalse (Str::contains ('' , '' ));
186
189
}
187
190
188
191
public function testStrContainsAll ()
0 commit comments