public function testptext() { $p = new element('p', array('text' => 'should be <p> tag')); $this->assertEquals($p->asHtml(), '<p>should be <p> tag</p>'); }