summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/html_helper_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-01-11 12:20:12 +0100
committerAndrey Andreev <narf@devilix.net>2016-01-11 12:20:12 +0100
commit8f1047ff6bc961159a7103e7be02e6cc459d925e (patch)
tree1a346869a5f3500f1423dcf7b58ae6c82da1a8ca /tests/codeigniter/helpers/html_helper_test.php
parent85ce9ab3f569450396a6f0688b2f047f58527598 (diff)
Polish changes from PR #4269
Diffstat (limited to 'tests/codeigniter/helpers/html_helper_test.php')
-rw-r--r--tests/codeigniter/helpers/html_helper_test.php32
1 files changed, 20 insertions, 12 deletions
diff --git a/tests/codeigniter/helpers/html_helper_test.php b/tests/codeigniter/helpers/html_helper_test.php
index 0b9655bf5..029f3f4cd 100644
--- a/tests/codeigniter/helpers/html_helper_test.php
+++ b/tests/codeigniter/helpers/html_helper_test.php
@@ -81,16 +81,24 @@ EOH;
public function test_meta()
{
- $this->assertEquals("<meta name=\"test\" content=\"foo\" />\n", meta('test', 'foo'));
-
- $expect = "<meta name=\"foo\" content=\"\" />\n";
-
- $this->assertEquals($expect, meta(array('name' => 'foo')));
-
- $expect = "<meta charset=\"foo\" />\n";
-
- $this->assertEquals($expect, meta(array('name' => 'foo', 'type' => 'charset')));
-
+ $this->assertEquals(
+ "<meta name=\"test\" content=\"foo\" />\n",
+ meta('test', 'foo')
+ );
+
+ $this->assertEquals(
+ "<meta name=\"foo\" content=\"\" />\n",
+ meta(array('name' => 'foo'))
+ );
+
+ $this->assertEquals(
+ "<meta charset=\"foo\" />\n",
+ meta(array('name' => 'foo', 'type' => 'charset'))
+ );
+
+ $this->assertEquals(
+ "<meta charset=\"foo\" />\n",
+ meta(array('name' => 'foo', 'type' => 'charset'))
+ );
}
-
-}
+} \ No newline at end of file