File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,17 @@ public function testStringTitle()
37
37
{
38
38
$ this ->assertSame ('Jefferson Costella ' , Str::title ('jefferson costella ' ));
39
39
$ this ->assertSame ('Jefferson Costella ' , Str::title ('jefFErson coSTella ' ));
40
+
41
+ $ this ->assertSame ('' , Str::title ('' ));
42
+ $ this ->assertSame ('123 Laravel ' , Str::title ('123 laravel ' ));
43
+ $ this ->assertSame ('❤Laravel ' , Str::title ('❤laravel ' ));
44
+ $ this ->assertSame ('Laravel ❤ ' , Str::title ('laravel ❤ ' ));
45
+ $ this ->assertSame ('Laravel123 ' , Str::title ('laravel123 ' ));
46
+ $ this ->assertSame ('Laravel123 ' , Str::title ('Laravel123 ' ));
47
+
48
+ $ longString = 'lorem ipsum ' .str_repeat ('dolor sit amet ' , 1000 );
49
+ $ expectedResult = 'Lorem Ipsum Dolor Sit Amet ' .str_repeat ('Dolor Sit Amet ' , 999 );
50
+ $ this ->assertSame ($ expectedResult , Str::title ($ longString ));
40
51
}
41
52
42
53
public function testStringHeadline ()
You can’t perform that action at this time.
0 commit comments