Przeglądaj źródła

Remove redundant test case for non-HTML string.

tags/v7.0.0alpha2
Andreas Fischer 10 lat temu
rodzic
commit
0d3ddd9e11
1 zmienionych plików z 2 dodań i 9 usunięć
  1. 2
    9
      tests/lib/template.php

+ 2
- 9
tests/lib/template.php Wyświetl plik

@@ -39,7 +39,9 @@ class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
p($badString);
$result = ob_get_clean();
$this->assertEquals('<script>alert('Hacked!');</script>', $result);
}

public function testPNormalString() {
$goodString = 'This is a good string without HTML.';
ob_start();
p($goodString);
@@ -47,15 +49,6 @@ class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
$this->assertEquals('This is a good string without HTML.', $result);
}

public function testPNormalString() {
$normalString = "This is a good string!";
ob_start();
p($normalString);
$result = ob_get_clean();

$this->assertEquals("This is a good string!", $result);
}

public function testPrintUnescaped() {
$htmlString = "<script>alert('xss');</script>";


Ładowanie…
Anuluj
Zapisz