From 88778b569e73dd2319c547be53df6aab6b8fa667 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Thu, 24 Apr 2014 15:36:02 +0200 Subject: [PATCH] Split testP() tests into multiple methods. --- tests/lib/template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib/template.php b/tests/lib/template.php index 40aec40234..299eb2b936 100644 --- a/tests/lib/template.php +++ b/tests/lib/template.php @@ -27,13 +27,15 @@ class Test_TemplateFunctions extends PHPUnit_Framework_TestCase { $loader->load('OC_Template'); } - public function testP() { + public function testPJavaScript() { $badString = ''; ob_start(); p($badString); $result = ob_get_clean(); $this->assertEquals('<img onload="alert(1)" />', $result); + } + public function testPJavaScriptWithScriptTags() { $badString = ""; ob_start(); p($badString);