Use new autoloader class

This commit is contained in:
Thomas Tanghus 2013-05-11 22:44:45 +02:00
parent ea88e295d3
commit 0d852dce3b
2 changed files with 5 additions and 4 deletions

View File

@ -19,8 +19,6 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
OC::autoload('OCP\Contacts');
class Test_Contacts extends PHPUnit_Framework_TestCase
{

View File

@ -20,10 +20,13 @@
*
*/
OC::autoload('OC_Template');
class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
public function setUp() {
$loader = new \OC\Autoloader();
$loader->load('OC_Template');
}
public function testP() {
// FIXME: do we need more testcases?
$htmlString = "<script>alert('xss');</script>";