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