\JFilterOutputTest
JFilterOutputTest
Synopsis
class JFilterOutputTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected JFilterOutput $object;
- protected beforeObject $safeObject;
- // methods
- protected void setUp()
- public void testObjectHTMLSafe()
- public void testObjectHTMLSafeWithArray()
- public void testLinkXHTMLSafe()
- public void testStringURLSafe()
- public void testStringURLUnicodeSlug()
- public void testAmpReplace()
- public static array dataSet()
- public void testCleanText()
- public void testStripImages()
- public void testStripIframes()
Hierarchy
Extends
Members
protected
- $object — JFilterOutput
- $safeObject — beforeObject
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- dataSet() — dataSet for Clean text
- testAmpReplace() — Tests replacing single ampersands with the entity, but leaving double ampersands and ampsersand-octothorpe combinations intact.
- testCleanText() — Execute a cleanText test case.
- testLinkXHTMLSafe() — Tests enforcing XHTML links.
- testObjectHTMLSafe() — Sends the FilterTestObject to the object filter.
- testObjectHTMLSafeWithArray() — Sends the FilterTestObject to the object filter.
- testStringURLSafe() — Tests filtering strings down to ASCII-7 lowercase URL text
- testStringURLUnicodeSlug() — Tests converting strings to URL unicoded slugs.
- testStripIframes() — Tests stripping iFrames.
- testStripImages() — Tests stripping images.