public function setCharset($chr) { $this->charset = $chr; return $this; }
public function testSetAndGetCharset() { $d = new Dom(Dom::XHTML11); $d->setCharset('utf-8'); $this->assertEquals('utf-8', $d->getCharset()); }