Example #1
0
 function setUp()
 {
     $this->_handler =& new MockSimpleSaxParser($this);
     $this->_handler->setReturnValue("acceptStartToken", true);
     $this->_handler->setReturnValue("acceptEndToken", true);
     $this->_handler->setReturnValue("acceptAttributeToken", true);
     $this->_handler->setReturnValue("acceptEntityToken", true);
     $this->_handler->setReturnValue("acceptTextToken", true);
     $this->_handler->setReturnValue("ignore", true);
     $this->_lexer =& SimpleSaxParser::createLexer($this->_handler);
 }