@@ -172,56 +172,6 @@ function testTouchBlock()
172172
173173 // Not available in stock class
174174
175- /**
176- *
177- */
178- /*
179- function testHideBlock()
180- {
181- if (!$this->_methodExists('hideBlock')) {
182- return;
183- }
184- $result = $this->tpl->loadTemplateFile('blockiteration.html', false, true);
185- if (PEAR::isError($result)) {
186- $this->assertTrue(false, 'Error loading template file: '. $result->getMessage());
187- }
188- $this->tpl->setVariable(array(
189- 'outer' => 'data',
190- 'inner' => 'stuff'
191- ));
192- // inner_block is not empty, but should be removed nonetheless
193- $this->tpl->hideBlock('inner_block');
194- $this->assertEquals('data#', $this->_stripWhitespace($this->tpl->get()));
195- }
196- */
197- /**
198- *
199- */
200- /*
201- function testSetGlobalVariable()
202- {
203- if (!$this->_methodExists('setGlobalVariable')) {
204- return;
205- }
206- $result = $this->tpl->loadTemplateFile('globals.html', false, true);
207- if (PEAR::isError($result)) {
208- $this->assertTrue(false, 'Error loading template file: '. $result->getMessage());
209- }
210- $this->tpl->setGlobalVariable('glob', 'glob');
211- // {var2} is not, block_two should be removed
212- $this->tpl->setVariable(array(
213- 'var1' => 'one',
214- 'var3' => 'three'
215- ));
216- for ($i = 0; $i < 3; $i++) {
217- $this->tpl->setVariable('var4', $i + 1);
218- $this->tpl->parse('block_four');
219- } // for
220- $this->assertEquals('glob:one#glob:three|glob:1|glob:2|glob:3#', $this->_stripWhitespace($this->tpl->get()));
221- }
222- */
223-
224-
225175 /**
226176 * Test for bug #9501. preg_replace treat $<NUM> and \<NUM> as
227177 * backreferences. IT escapes them.
0 commit comments