test tweaks
authorChuck Hagenbuch <chuck@horde.org>
Mon, 23 Feb 2009 17:30:45 +0000 (12:30 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 23 Feb 2009 17:30:45 +0000 (12:30 -0500)
framework/View/test/Horde/View/BaseTest.php
framework/View/test/Horde/View/Helper/FormTest.php
framework/View/test/Horde/View/Helper/JavascriptTest.php
framework/View/test/Horde/View/Helper/NumberTest.php
framework/View/test/Horde/View/Helper/TagTest.php

index ae8d301..5d4f72a 100644 (file)
@@ -218,7 +218,7 @@ class Horde_View_BaseTest extends Horde_Test_Case
         // 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));
     }
 
index a64be7b..163ec79 100644 (file)
@@ -366,7 +366,7 @@ class Horde_View_Helper_FormTest extends Horde_Test_Case
         $this->assertEquals($expected, ob_get_clean());
     }
 
-    public function testFieldsForobjectWithBracketedName()
+    public function testFieldsForObjectWithBracketedName()
     {
         ob_start();
         $fields = $this->view->fieldsFor('author[post]', $this->post);
@@ -378,7 +378,7 @@ class Horde_View_Helper_FormTest extends Horde_Test_Case
             ob_get_clean());
     }
 
-    public function testFormbuilderDoesNotHaveFormForMethod()
+    public function testFormBuilderDoesNotHaveFormForMethod()
     {
         $methods = get_class_methods('Horde_View_Helper_Form_Builder');
         $this->assertTrue(empty($methods['formFor']));
@@ -474,8 +474,7 @@ class Horde_View_Helper_FormTest extends Horde_Test_Case
             ob_get_clean());
     }
 
-
-    public function testFormForWithHiddenFieldMadOnly()
+    public function testFormForWithHiddenField()
     {
         ob_start();
         $form = $this->view->formFor('post', $this->post);
@@ -490,7 +489,7 @@ class Horde_View_Helper_FormTest extends Horde_Test_Case
         $this->assertEquals($expected, ob_get_clean());
     }
 
-    public function testFormForWithFileFieldMadOnly()
+    public function testFormForWithFileField()
     {
         ob_start();
         $form = $this->view->formFor('post', $this->post);
index 546cca7..a7e99d4 100644 (file)
@@ -22,7 +22,7 @@
  * @package    Horde_View
  * @subpackage UnitTests
  */
-class Horde_View_Helper_JavascriptTest extends PHPUnit_Framework_TestCase
+class Horde_View_Helper_JavascriptTest extends Horde_Test_Case
 {
     public function setUp()
     {
index 74d7f97..e8659db 100644 (file)
@@ -31,7 +31,7 @@ class Horde_View_Helper_NumberTest extends Horde_Test_Case
 
     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));
index 5929685..61ca02f 100644 (file)
@@ -22,7 +22,7 @@
  * @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()
     {
@@ -98,4 +98,5 @@ class Horde_View_Helper_TagTest extends PHPUnit_Framework_TestCase
                                 $this->helper->tag('a', array('href' => $escaped)));
         }
     }
+
 }