blob: e8cf411daa35d8c78ad9340ed724fba4cbee0a3e [file] [log] [blame]
Eric Barnes68286a42011-04-21 22:00:33 -04001<?php
2
Taufan Adityae1dc9ea2012-03-28 16:49:49 +07003class Xml_helper_test extends CI_TestCase {
Eric Barnes68286a42011-04-21 22:00:33 -04004
Taufan Adityae1dc9ea2012-03-28 16:49:49 +07005 public function set_up()
6 {
7 $this->helper('xml');
8 }
Andrey Andreev99b782d2012-06-09 22:24:46 +03009
Eric Barnes68286a42011-04-21 22:00:33 -040010 public function test_xml_convert()
11 {
12 $this->assertEquals('&lt;tag&gt;my &amp; test &#45; &lt;/tag&gt;', xml_convert('<tag>my & test - </tag>'));
13 }
Andrey Andreev99b782d2012-06-09 22:24:46 +030014
Eric Barnes68286a42011-04-21 22:00:33 -040015}