예제 #1
0
파일: TestCommon.php 프로젝트: rexmac/zf2
 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());
 }
예제 #2
0
 public function testSetOptions()
 {
     $this->assertEquals(false, $this->renderer->getAutomaticRenderError());
     $this->renderer->setOptions(array('automaticRenderError' => true, 'unkownProperty' => 'aValue'));
     $this->assertEquals(true, $this->renderer->getAutomaticRenderError());
 }