assertEquals($expected_text, $replaced); } /** * Data for checking HTML list conversion to plain text * * HTML first, then expected text */ public function listDataProvider() { return array( // HTML // Plaintext ['', ''], ['Not actually HTML', 'Not actually HTML'], ['HTML, but NO list here', 'HTML, but NO list here'], ["
Unordered list:
Unordered list:\r\n * First\r\n * Second\r\n * Third\r\n
\r\nPost text
\n"], ["Ordered list:". "Ordered list:\r\n" . " 1. First\r\n" . " 2. Second\r\n" . " 3. Third\r\n" . "
Post text
\n"], ); } }