/** * */ public function testLimitChars() { $this->assertEquals(str_repeat('x', 50), Str::limitChars(str_repeat('x', 50))); $this->assertEquals(str_repeat('x', 100) . '...', Str::limitChars(str_repeat('x', 200))); $this->assertEquals(str_repeat('x', 40) . '...', Str::limitChars(str_repeat('x', 50), 40)); $this->assertEquals(str_repeat('x', 40) . ',,,', Str::limitChars(str_repeat('x', 50), 40, ',,,')); }