Adding fix for #2823, fixes Element gets different instances of helper than view in PHP4 and PHP5

Removed HtmlHelperTest::testRadio(), the HtmlHelper::radio() has been deprecated

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5379 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-07-06 04:31:45 +00:00
parent 4ff21a6a08
commit fb0a327a38
3 changed files with 11 additions and 17 deletions

View file

@ -744,7 +744,7 @@ class View extends Object {
${$camelBackedHelper}->{$subHelper} =& $loadedHelpers[$subHelper];
}
}
$this->loaded[$camelBackedHelper] = (${$camelBackedHelper});
$this->loaded[$camelBackedHelper] =& ${$camelBackedHelper};
}
}

View file

@ -742,7 +742,6 @@ class FormHelperTest extends CakeTestCase {
$this->assertEqual($result, '<input type="hidden" name="data[Contact][published]" value="0" id="theID_" /><input type="checkbox" name="data[Contact][published]" type="checkbox" id="theID" value="1" />');
}
function tearDown() {
unset($this->Form);
}

View file

@ -66,11 +66,6 @@ class HtmlHelperTest extends UnitTestCase {
$this->assertPattern($expected, $result);
}
function testRadio() {
$result = $this->Html->radio('Tests/process', array('0'=> 'zero', '1'=>'one'));
$this->assertNoPattern('/checked="checked"/', $result);
}
function testStyle() {
$result = $this->Html->style(array('display'=> 'none', 'margin'=>'10px'));
$expected = 'style="display:none; margin:10px;"';