assertInstanceOf('html', $object, "Class constructor"); } /** * Data for test_quote() */ function data_quote() { return array( array('abc', 'abc'), array('?', '?'), array('"', '"'), array('<', '<'), array('>', '>'), array('&', '&'), array('&', '&amp;'), array('&', '&', true), ); } /** * Test for quote() * @dataProvider data_quote */ function test_quote($str, $result, $validate = false) { $this->assertEquals(html::quote($str, $validate), $result); } }