assertSame($expected, $actual); } public function get_legacy_tests() { return array( array( "&<>"'", "&<>"'" ), array( ':)', ':)' ), /** * Fails as per PHPBB3-8420 * @link http://tracker.phpbb.com/browse/PHPBB3-8420 * array( '[url=http://example.com:2cpxwbdy]:arrow: here[/url:2cpxwbdy]', '[url=http://example.com] :arrow: here[/url]', '2cpxwbdy' ), */ ); } /** * @dataProvider get_text_formatter_tests */ public function test_text_formatter($original, $expected) { $this->get_test_case_helpers()->set_s9e_services(); $actual = $original; decode_message($actual); $this->assertSame($expected, $actual); } public function get_text_formatter_tests() { return array( array( "&<>\"'", "&<>"'" ), array( ':)', ':)' ), array( "a
\nb
", "a\nb" ), /** * @link http://tracker.phpbb.com/browse/PHPBB3-8420 */ array( '[url=http://example.com] :arrow: here[/url]', '[url=http://example.com] :arrow: here[/url]' ), ); } }