Esempio n. 1
0
 public function testAppendPrependWrap()
 {
     $text = new Text('content');
     $expected = '<p>content</p>';
     $p = $text->append('</p>')->prepend('<p>');
     $this->assertEquals($expected, (string) $p);
     $text = new Text('content');
     $this->assertEquals($expected, (string) $text->wrap('<p>', '</p>'));
 }