Lines Matching refs:str_ends_with
2 str_ends_with() function - unit tests for str_ends_with()
6 var_dump(str_ends_with($testStr, "End"));
7 var_dump(str_ends_with($testStr, "end"));
8 var_dump(str_ends_with($testStr, "en"));
9 var_dump(str_ends_with($testStr, $testStr));
10 var_dump(str_ends_with($testStr, $testStr.$testStr));
11 var_dump(str_ends_with($testStr, ""));
12 var_dump(str_ends_with("", ""));
13 var_dump(str_ends_with("", " "));
14 var_dump(str_ends_with($testStr, "\x00"));
15 var_dump(str_ends_with("\x00", ""));
16 var_dump(str_ends_with("\x00", "\x00"));
17 var_dump(str_ends_with("a\x00", "\x00"));
18 var_dump(str_ends_with("ab\x00c", "b\x00c"));
19 var_dump(str_ends_with("a\x00b", "d\x00b"));
20 var_dump(str_ends_with("a\x00b", "a\x00z"));
21 var_dump(str_ends_with("a", "\x00a"));
22 var_dump(str_ends_with("a", "a\x00"));