public function setUp() { parent::setUp(); $this->post = $this->modx->newObject('disPost'); $this->post->fromArray(array('id' => 12345, 'title' => 'Unit Test Parser Post'), '', true, true); $this->post->loadParser(); $this->parser =& $this->post->parser; }