Ejemplo n.º 1
0
 /**
  * Tests the escape of the set data.
  *
  * @return void
  */
 public function testEscape()
 {
     $testString = '<a href="http://test.com/index.php?test=1&test2=2">test</a>';
     $this->viewDo->set('testString', $testString);
     $this->assertEquals(htmlspecialchars($testString), $this->viewDo->get('testString'));
     $testArray = array(array($testString));
     $this->viewDo->set('testArray', $testArray);
     $this->assertEquals(array(array(htmlspecialchars($testString))), $this->viewDo->get('testArray'));
 }