Skip to content

Commit

Permalink
Update StringTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
parsilver committed May 31, 2023
1 parent e8801b8 commit c70a18a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/StringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@
$this->assertEquals('foo_bar', Str::snake('fooBar'));
$this->assertEquals('foo_bar', Str::snake('fooBar', '_'));
});

it('can convert string to lower case', function () {
$this->assertEquals('foo bar baz', Str::lower('FOO BAR BAZ'));
});

it('can replace string', function () {
$this->assertEquals('bar bar baz', Str::replace('foo', 'bar', 'foo bar baz'));
});

0 comments on commit c70a18a

Please sign in to comment.