public function testPadding() { $str = new Text('let it go'); $this->assertEquals('-=let it go', $str->padLeft(11, '-=')); $this->assertEquals('-=let it go', $str->padLeft(11, new Text('-='))); $this->assertEquals('let it go=-', $str->padRight(11, '=-')); $this->assertEquals('let it go=-', $str->padRight(11, new Text('=-'))); }