public function testEnableView() { $this->dispatcher = Yaf_Dispatcher::getInstance(); $this->dispatcher->disableView(); $this->assertFalse($this->readAttribute($this->dispatcher, '_auto_render')); $this->dispatcher->enableView(); $this->assertTrue($this->readAttribute($this->dispatcher, '_auto_render')); }