// add text helper
$this->_view->addHelper(new Horde_View_Helper_Text($this->_view));
- // sucessfull when trying to add it again
+ // successful when trying to add it again
$this->_view->addHelper(new Horde_View_Helper_Text($this->_view));
}
$this->assertEquals($expected, ob_get_clean());
}
- public function testFieldsForobjectWithBracketedName()
+ public function testFieldsForObjectWithBracketedName()
{
ob_start();
$fields = $this->view->fieldsFor('author[post]', $this->post);
ob_get_clean());
}
- public function testFormbuilderDoesNotHaveFormForMethod()
+ public function testFormBuilderDoesNotHaveFormForMethod()
{
$methods = get_class_methods('Horde_View_Helper_Form_Builder');
$this->assertTrue(empty($methods['formFor']));
ob_get_clean());
}
-
- public function testFormForWithHiddenFieldMadOnly()
+ public function testFormForWithHiddenField()
{
ob_start();
$form = $this->view->formFor('post', $this->post);
$this->assertEquals($expected, ob_get_clean());
}
- public function testFormForWithFileFieldMadOnly()
+ public function testFormForWithFileField()
{
ob_start();
$form = $this->view->formFor('post', $this->post);
public function testNumberToHumanSize()
{
- $this->assertEquals('0 Bytes', $this->helper->numberToHumanSize(0));
+ $this->assertEquals('0 Bytes', $this->helper->numberToHumanSize(0));
$this->assertEquals('0 Bytes', $this->helper->numberToHumanSize(0));
$this->assertEquals('1 Byte', $this->helper->numberToHumanSize(1));
$this->assertEquals('3 Bytes', $this->helper->numberToHumanSize(3.14159265));
* @package Horde_View
* @subpackage UnitTests
*/
-class Horde_View_Helper_TagTest extends PHPUnit_Framework_TestCase
+class Horde_View_Helper_TagTest extends Horde_Test_Case
{
public function setUp()
{
$this->helper->tag('a', array('href' => $escaped)));
}
}
+
}