public function testWrap() { $this->eq(s::wrap('abcdef', 2), "ab\ncd\nef"); $this->eq(s::wrap('abcdef', 10), 'abcdef'); $this->eq(s::wrap('abcdefg', 3, 'x'), 'abcxdefxg'); }
public function wrap($cols, $sep = "\n") { return new self(s::wrap($this->value, $cols, self::unwrap($sep))); }