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:

\r\nPost text

", "

Unordered list:\r\n * First\r\n * Second\r\n * Third\r\n

\r\nPost text

\n"], ["Ordered list:". "
  1. First
  2. \r\n" . "
  3. Second
  4. \r\n" . "
  5. Third
  6. \r\n" . "
Post text", "

Ordered list:\r\n" . " 1. First\r\n" . " 2. Second\r\n" . " 3. Third\r\n" . "

Post text

\n"], ); } }