From 6c7a4266410070d30f8f6bcdf9c9e67f3d6478e3 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 19 Jun 2017 11:33:58 +0300 Subject: [ci skip] 3.1.5 release --- tests/codeigniter/helpers/html_helper_test.php | 106 ------------------------- 1 file changed, 106 deletions(-) delete mode 100644 tests/codeigniter/helpers/html_helper_test.php (limited to 'tests/codeigniter/helpers/html_helper_test.php') diff --git a/tests/codeigniter/helpers/html_helper_test.php b/tests/codeigniter/helpers/html_helper_test.php deleted file mode 100644 index 3cf1016ec..000000000 --- a/tests/codeigniter/helpers/html_helper_test.php +++ /dev/null @@ -1,106 +0,0 @@ -helper('html'); - } - - // ------------------------------------------------------------------------ - - public function test_br() - { - $this->assertEquals('

', br(2)); - } - - // ------------------------------------------------------------------------ - - public function test_heading() - { - $this->assertEquals('

foobar

', heading('foobar')); - $this->assertEquals('

foobar

', heading('foobar', 2, 'class="bar"')); - } - - public function test_heading_array_attributes() - { - // Test array of attributes - $this->assertEquals('

foobar

', heading('foobar', 2, array('class' => 'bar', 'id' => 'foo'))); - } - - public function test_heading_object_attributes() - { - // Test array of attributes - $this->assertEquals('

foobar

', heading('foobar', 2, array('class' => 'bar', 'id' => 'foo'))); - $test = new stdClass; - $test->class = "bar"; - $test->id = "foo"; - $this->assertEquals('

foobar

', heading('foobar', 2, $test)); - } - - // ------------------------------------------------------------------------ - - public function test_img() - { - $this->ci_set_config('base_url', 'http://localhost/'); - $this->assertEquals('', img("test")); - $this->assertEquals('', img("data:foo/bar,baz")); - $this->assertEquals('', img("data://foo")); - $this->assertEquals('', img("//foo.bar/baz")); - $this->assertEquals('', img("http://foo.bar/baz")); - $this->assertEquals('', img("https://foo.bar/baz")); - $this->assertEquals('', img("ftp://foo.bar/baz")); - } - - // ------------------------------------------------------------------------ - - public function test_Ul() - { - $expect = << -
  • foo
  • -
  • bar
  • - - -EOH; - - $expect = ltrim($expect); - $list = array('foo', 'bar'); - - $this->assertEquals(ltrim($expect), ul($list)); - - $expect = << -
  • foo
  • -
  • bar
  • - - -EOH; - - $expect = ltrim($expect); - - $this->assertEquals($expect, ul($list, 'class="test"')); - - $this->assertEquals($expect, ul($list, array('class' => 'test'))); - } - - // ------------------------------------------------------------------------ - - public function test_NBS() - { - $this->assertEquals('   ', nbs(3)); - } - - // ------------------------------------------------------------------------ - - public function test_meta() - { - $this->assertEquals("\n", meta('test', 'foo')); - - $expect = "\n"; - - $this->assertEquals($expect, meta(array('name' => 'foo'))); - - } - -} -- cgit v1.2.3-24-g4f1b