示例#1
0
 function testHttp_ViewEscape()
 {
     $locator = new A_Locator();
     $view = new A_Http_View($locator);
     $str = '<hr style="foo"> &';
     $str_escaped = '&lt;hr style=&quot;foo&quot;&gt; &amp;';
     $this->assertEqual($str_escaped, $view->escape($str));
 }