public function invoke($test) { // this is totally the wrong interface to use, but // for now we need testing $tokenizer = new Tokenizer($test['data']); $GLOBALS['TIME'] -= get_microtime(); if (isset($test['document-fragment'])) { $tokenizer->parseFragment($test['document-fragment']); } else { $tokenizer->parse(); } $GLOBALS['TIME'] += get_microtime(); $this->assertIdentical($test['document'], TestData::strDom($tokenizer->save()), $test); }
public function parse() { $this->content_model = $this->_contentModelFlag; if ($this->_lastStartFlag) { $this->token = array('type' => self::STARTTAG, 'name' => $this->_lastStartFlag); } return parent::parse(); }