<?php require_once(BASEPATH.'helpers/xml_helper.php'); class Xml_helper_test extends CI_TestCase { public function test_xml_convert() { $this->assertEquals('<tag>my & test - </tag>', xml_convert('<tag>my & test - </tag>')); } }