예제 #1
0
 public function testPad()
 {
     $this->eq(s::pad('x', 5), '  x  ');
     $this->eq(s::pad('x', 9, 'yy'), 'yyyyxyyyy');
 }
예제 #2
0
 public function pad($n, $pad = ' ')
 {
     return new self(s::pad($this->value, $n, self::unwrap($pad)));
 }