summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/libraries/Typography_test.php
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-04-22 04:00:33 +0200
committerEric Barnes <eric@ericlbarnes.com>2011-04-22 04:00:33 +0200
commit68286a4dcc1ed4d904ad992173c1b3621bf6fced (patch)
treedd24a9e0126058f9d3b0958244b85784f1a66223 /tests/codeigniter/libraries/Typography_test.php
parentb58aeaca9be4b342bb6d88138005fdc7138828b4 (diff)
Reworked unit tests to match rest of framework and added a few more.
Diffstat (limited to 'tests/codeigniter/libraries/Typography_test.php')
-rw-r--r--tests/codeigniter/libraries/Typography_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/codeigniter/libraries/Typography_test.php b/tests/codeigniter/libraries/Typography_test.php
index 242a6e944..a0533bae0 100644
--- a/tests/codeigniter/libraries/Typography_test.php
+++ b/tests/codeigniter/libraries/Typography_test.php
@@ -5,7 +5,7 @@ require BASEPATH.'libraries/Typography.php';
class Typography_test extends CI_TestCase
{
- public function setUp()
+ public function set_up()
{
$obj = new StdClass;
$obj->type = new CI_Typography();
@@ -22,7 +22,7 @@ class Typography_test extends CI_TestCase
*
* this can and should grow.
*/
- public function testFormatCharacters()
+ public function test_format_characters()
{
$strs = array(
'"double quotes"' => '&#8220;double quotes&#8221;',
@@ -46,7 +46,7 @@ class Typography_test extends CI_TestCase
// --------------------------------------------------------------------
- public function testNl2brExceptPre()
+ public function test_nl2br_except_pre()
{
$str = <<<EOH
Hello, I'm a happy string with some new lines.
@@ -94,7 +94,7 @@ EOH;
// --------------------------------------------------------------------
- public function testAutoTypography()
+ public function test_auto_typography()
{
$this->_blank_string();
$this->_standardize_new_lines();