|
|
@ -31,7 +31,6 @@ class Framework_Html extends PHPUnit_Framework_TestCase
|
|
|
|
array('>', '>'),
|
|
|
|
array('>', '>'),
|
|
|
|
array('&', '&'),
|
|
|
|
array('&', '&'),
|
|
|
|
array('&', '&'),
|
|
|
|
array('&', '&'),
|
|
|
|
array('&', '&', true),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -39,8 +38,8 @@ class Framework_Html extends PHPUnit_Framework_TestCase
|
|
|
|
* Test for quote()
|
|
|
|
* Test for quote()
|
|
|
|
* @dataProvider data_quote
|
|
|
|
* @dataProvider data_quote
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function test_quote($str, $result, $validate = false)
|
|
|
|
function test_quote($str, $result)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->assertEquals(html::quote($str, $validate), $result);
|
|
|
|
$this->assertEquals(html::quote($str), $result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|