@@ -11,23 +11,23 @@ discard block |
||
| 11 | 11 | class CEscaperTest extends \PHPUnit_Framework_TestCase |
| 12 | 12 | { |
| 13 | 13 | /** |
| 14 | - * Test |
|
| 15 | - * |
|
| 16 | - * @return void |
|
| 17 | - */ |
|
| 14 | + * Test |
|
| 15 | + * |
|
| 16 | + * @return void |
|
| 17 | + */ |
|
| 18 | 18 | public function testConstructorSuccess() { |
| 19 | 19 | $el = new \Scelus\Escaper\CEscaper(); |
| 20 | 20 | |
| 21 | - $res = $el->getEncoding(); |
|
| 22 | - $exp = 'UTF-8'; |
|
| 23 | - $this->assertEquals($res, $exp, "Created element name missmatch."); |
|
| 21 | + $res = $el->getEncoding(); |
|
| 22 | + $exp = 'UTF-8'; |
|
| 23 | + $this->assertEquals($res, $exp, "Created element name missmatch."); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * Test |
|
| 28 | - * |
|
| 29 | - * @return void |
|
| 30 | - */ |
|
| 27 | + * Test |
|
| 28 | + * |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 31 | 31 | public function testSetAndGetEncoding() { |
| 32 | 32 | $el = new \Scelus\Escaper\CEscaper('ASCII'); |
| 33 | 33 | |
@@ -42,10 +42,10 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * Test |
|
| 46 | - * |
|
| 47 | - * @return void |
|
| 48 | - */ |
|
| 45 | + * Test |
|
| 46 | + * |
|
| 47 | + * @return void |
|
| 48 | + */ |
|
| 49 | 49 | public function testEscapeHTML() { |
| 50 | 50 | $el = new \Scelus\Escaper\CEscaper(); |
| 51 | 51 | |
@@ -56,10 +56,10 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * Test |
|
| 60 | - * |
|
| 61 | - * @return void |
|
| 62 | - */ |
|
| 59 | + * Test |
|
| 60 | + * |
|
| 61 | + * @return void |
|
| 62 | + */ |
|
| 63 | 63 | public function testEscapeHTMLattr() { |
| 64 | 64 | $el = new \Scelus\Escaper\CEscaper(); |
| 65 | 65 | |
@@ -70,10 +70,10 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * Test |
|
| 74 | - * |
|
| 75 | - * @return void |
|
| 76 | - */ |
|
| 73 | + * Test |
|
| 74 | + * |
|
| 75 | + * @return void |
|
| 76 | + */ |
|
| 77 | 77 | public function testEscapeUrl() { |
| 78 | 78 | $el = new \Scelus\Escaper\CEscaper(); |
| 79 | 79 | |
@@ -84,10 +84,10 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | - * Test |
|
| 88 | - * |
|
| 89 | - * @return void |
|
| 90 | - */ |
|
| 87 | + * Test |
|
| 88 | + * |
|
| 89 | + * @return void |
|
| 90 | + */ |
|
| 91 | 91 | public function testEscapeCSS() { |
| 92 | 92 | $el = new \Scelus\Escaper\CEscaper(); |
| 93 | 93 | |
@@ -98,10 +98,10 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * Test |
|
| 102 | - * |
|
| 103 | - * @return void |
|
| 104 | - */ |
|
| 101 | + * Test |
|
| 102 | + * |
|
| 103 | + * @return void |
|
| 104 | + */ |
|
| 105 | 105 | public function testEscapeJs() { |
| 106 | 106 | $el = new \Scelus\Escaper\CEscaper(); |
| 107 | 107 | $argument = "'; alert(100); var x='"; |
@@ -111,10 +111,10 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * Test |
|
| 115 | - * |
|
| 116 | - * @return void |
|
| 117 | - */ |
|
| 114 | + * Test |
|
| 115 | + * |
|
| 116 | + * @return void |
|
| 117 | + */ |
|
| 118 | 118 | public function testEscapeXML() { |
| 119 | 119 | $el = new \Scelus\Escaper\CEscaper(); |
| 120 | 120 | $argument = '></div><h1>myattack</h1>'; |
@@ -124,10 +124,10 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * Test |
|
| 128 | - * |
|
| 129 | - * @return void |
|
| 130 | - */ |
|
| 127 | + * Test |
|
| 128 | + * |
|
| 129 | + * @return void |
|
| 130 | + */ |
|
| 131 | 131 | public function testEscapeXmlattr() { |
| 132 | 132 | $el = new \Scelus\Escaper\CEscaper(); |
| 133 | 133 | $argument = '"><h1>Hello</table'; |