Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 1 | <?php |
2 | |||||
Taufan Aditya | e1dc9ea | 2012-03-28 16:49:49 +0700 | [diff] [blame] | 3 | class Xml_helper_test extends CI_TestCase { |
Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 4 | |
Taufan Aditya | e1dc9ea | 2012-03-28 16:49:49 +0700 | [diff] [blame] | 5 | public function set_up() |
6 | { | ||||
7 | $this->helper('xml'); | ||||
8 | } | ||||
Andrey Andreev | 99b782d | 2012-06-09 22:24:46 +0300 | [diff] [blame] | 9 | |
Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 10 | public function test_xml_convert() |
11 | { | ||||
12 | $this->assertEquals('<tag>my & test - </tag>', xml_convert('<tag>my & test - </tag>')); | ||||
13 | } | ||||
Andrey Andreev | 99b782d | 2012-06-09 22:24:46 +0300 | [diff] [blame] | 14 | |
Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 15 | } |