예제 #1
0
 public function testTruncate()
 {
     // Arrange
     $a = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque et mi orci.';
     // Act
     $x = __::truncate($a, 5);
     // Assert
     $this->assertEquals('Lorem ipsum dolor sit amet, ...', $x);
 }