예제 #1
0
 public function testToArray_whenEscapedRequired_shouldReturnEscapedData()
 {
     $testString = '<a href="http://test.com/index.php?test=1&test2=2">test</a>';
     $this->viewDo->set('testString', $testString);
     $expected = array('testString' => htmlspecialchars($testString));
     $this->assertEquals($expected, $this->viewDo->toArray());
 }