public function testSetConfig() { $this->assertEquals(false, $this->_renderer->getAutomaticRenderError()); $config = new Config\Config(array('automaticRenderError' => true, 'unkownProperty' => 'aValue')); $this->_renderer->setConfig($config); $this->assertEquals(true, $this->_renderer->getAutomaticRenderError()); }
public function testSetOptions() { $this->assertEquals(false, $this->renderer->getAutomaticRenderError()); $this->renderer->setOptions(array('automaticRenderError' => true, 'unkownProperty' => 'aValue')); $this->assertEquals(true, $this->renderer->getAutomaticRenderError()); }