예제 #1
0
 /**
  * @test
  */
 public function align()
 {
     $this->assertEquals('teste...', Str::align('teste title', 15, 'teste description', 5, 3));
     $this->assertEquals('teste description', Str::align('teste title', 15, 'teste description', 5, 5));
 }
예제 #2
0
 /**
  * Align text with the amount of characters the title and number of lines.
  *
  * @param string $title
  * @param int    $titlePerLine
  * @param string $text
  * @param int    $textPerLine
  * @param int    $lines
  *
  * @return string
  */
 function str_align($title, $titlePerLine, $text, $textPerLine, $lines)
 {
     return Str::align($title, $titlePerLine, $text, $textPerLine, $lines);
 }