a tiny mvc framework for php using php-activerecord
at v1 16 lines 324 B view raw
1<?php 2 3require(__DIR__ . "/../lib/halfmoon.php"); 4 5class RawTest extends PHPUnit_Framework_TestCase { 6 public function testRaw() { 7 $str = "<b>this is some text</b>"; 8 9 $this->assertEquals("&lt;b&gt;this is some text&lt;/b&gt;", 10 h($str)); 11 12 $this->assertEquals("<b>this is some text</b>", (string)raw($str)); 13 } 14} 15 16?>