diff --git a/tests/Support/SupportStrTest.php b/tests/Support/SupportStrTest.php index 74469575bc05..d6b7cfbdcf11 100755 --- a/tests/Support/SupportStrTest.php +++ b/tests/Support/SupportStrTest.php @@ -853,6 +853,11 @@ public function testTake() { $this->assertSame('ab', Str::take('abcdef', 2)); $this->assertSame('ef', Str::take('abcdef', -2)); + $this->assertSame('', Str::take('abcdef', 0)); + $this->assertSame('', Str::take('', 2)); + $this->assertSame('abcdef', Str::take('abcdef', 10)); + $this->assertSame('abcdef', Str::take('abcdef', 6)); + $this->assertSame('ü', Str::take('üöä', 1)); } public function testLcfirst()