diff --git a/tests/phpunit/tests/formatting/Smilies.php b/tests/phpunit/tests/formatting/Smilies.php index 2fbb79400d..b12d777bcb 100644 --- a/tests/phpunit/tests/formatting/Smilies.php +++ b/tests/phpunit/tests/formatting/Smilies.php @@ -16,15 +16,15 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase { return array ( array ( 'Lorem ipsum dolor sit amet mauris ;-) Praesent gravida sodales. :lol: Vivamus nec diam in faucibus eu, bibendum varius nec, imperdiet purus est, at augue at lacus malesuada elit dapibus a, :eek: mauris. Cras mauris viverra elit. Nam laoreet viverra. Pellentesque tortor. Nam libero ante, porta urna ut turpis. Nullam wisi magna, :mrgreen: tincidunt nec, sagittis non, fringilla enim. Nam consectetuer nec, ullamcorper pede eu dui odio consequat vel, vehicula tortor quis pede turpis cursus quis, egestas ipsum ultricies ut, eleifend velit. Mauris vestibulum iaculis. Sed in nunc. Vivamus elit porttitor egestas. Mauris purus :?:', - 'Lorem ipsum dolor sit amet mauris \';-)\' Praesent gravida sodales. \':lol:\' Vivamus nec diam in faucibus eu, bibendum varius nec, imperdiet purus est, at augue at lacus malesuada elit dapibus a, \':eek:\' mauris. Cras mauris viverra elit. Nam laoreet viverra. Pellentesque tortor. Nam libero ante, porta urna ut turpis. Nullam wisi magna, \':mrgreen:\' tincidunt nec, sagittis non, fringilla enim. Nam consectetuer nec, ullamcorper pede eu dui odio consequat vel, vehicula tortor quis pede turpis cursus quis, egestas ipsum ultricies ut, eleifend velit. Mauris vestibulum iaculis. Sed in nunc. Vivamus elit porttitor egestas. Mauris purus \':?:\' ' + 'Lorem ipsum dolor sit amet mauris ;-) Praesent gravida sodales. :lol: Vivamus nec diam in faucibus eu, bibendum varius nec, imperdiet purus est, at augue at lacus malesuada elit dapibus a, :eek: mauris. Cras mauris viverra elit. Nam laoreet viverra. Pellentesque tortor. Nam libero ante, porta urna ut turpis. Nullam wisi magna, :mrgreen: tincidunt nec, sagittis non, fringilla enim. Nam consectetuer nec, ullamcorper pede eu dui odio consequat vel, vehicula tortor quis pede turpis cursus quis, egestas ipsum ultricies ut, eleifend velit. Mauris vestibulum iaculis. Sed in nunc. Vivamus elit porttitor egestas. Mauris purus :?: ' ), array ( 'Welcome to the jungle! We got fun n games! :) We got everything you want 8-) Honey we know the names :)', - 'Welcome to the jungle! We got fun n games! \':)\' We got everything you want \'8-)\' Honey we know the names \':)\' ' + 'Welcome to the jungle! We got fun n games! :) We got everything you want 8-) Honey we know the names :) ' ), array ( "a little bit of this\na little bit:other: of that :D\n:D a little bit of good\nyeah with a little bit of bad8O", - "a little bit of this\na little bit:other: of that :D :D a little bit of good\nyeah with a little bit of bad8O" + "a little bit of this\na little bit:other: of that \":D\" \":D\" a little bit of good\nyeah with a little bit of bad8O" ), array ( 'and I say it\'s allright:D:D', @@ -76,15 +76,15 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase { return array ( array ( 'Peter Brian Gabriel (born 13 February 1950) is a British singer, musician, and songwriter who rose to fame as the lead vocalist and flautist of the progressive rock group Genesis. :monkey:', - 'Peter Brian Gabriel (born 13 February 1950) is a British singer, musician, and songwriter who rose to fame as the lead vocalist and flautist of the progressive rock group Genesis. \':monkey:\' ' + 'Peter Brian Gabriel (born 13 February 1950) is a British singer, musician, and songwriter who rose to fame as the lead vocalist and flautist of the progressive rock group Genesis. :monkey: ' ), array ( 'Star Wars Jedi Knight :arrow: Jedi Academy is a first and third-person shooter action game set in the Star Wars universe. It was developed by Raven Software and published, distributed and marketed by LucasArts in North America and by Activision in the rest of the world. :nervou:', - 'Star Wars Jedi Knight \':arrow:\' Jedi Academy is a first and third-person shooter action game set in the Star Wars universe. It was developed by Raven Software and published, distributed and marketed by LucasArts in North America and by Activision in the rest of the world. \':nervou:\' ' + 'Star Wars Jedi Knight :arrow: Jedi Academy is a first and third-person shooter action game set in the Star Wars universe. It was developed by Raven Software and published, distributed and marketed by LucasArts in North America and by Activision in the rest of the world. :nervou: ' ), array ( ':arrow: monkey: Lorem ipsum dolor sit amet enim. Etiam ullam :PP
corper. Suspendisse a pellentesque dui, non felis. :arrow: :arrow', - ' \':arrow:\' monkey: Lorem ipsum dolor sit amet enim. Etiam ullam \':PP\'
corper. Suspendisse a pellentesque dui, non felis. \':arrow:\' :arrow' + ' :arrow: monkey: Lorem ipsum dolor sit amet enim. Etiam ullam :PP
corper. Suspendisse a pellentesque dui, non felis. :arrow: :arrow' ), ); } @@ -150,7 +150,7 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase { $includes_path = includes_url("images/smilies/"); $in_str = 'Do we ingore smilies ;-) in ' . $element . ' tags <' . $element . '>My Content Here :?: '; - $exp_str = 'Do we ingore smilies \';-)\' in ' . $element . ' tags <' . $element . '>My Content Here :?: '; + $exp_str = 'Do we ingore smilies ;-) in ' . $element . ' tags <' . $element . '>My Content Here :?: '; // standard smilies, use_smilies: ON update_option( 'use_smilies', 1 ); @@ -174,27 +174,27 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase { return array ( array ( '8-O :-(', - ' \'8-O\' \':-(\' ' + ' 8-O :-( ' ), array ( '8-) 8-O', - ' \'8-)\' \'8-O\' ' + ' 8-) 8-O ' ), array ( '8-) 8O', - ' \'8-)\' \'8O\' ' + ' 8-) 8O ' ), array ( '8-) :-(', - ' \'8-)\' \':-(\' ' + ' 8-) :-( ' ), array ( '8-) :twisted:', - ' \'8-)\' \':twisted:\' ' + ' 8-) :twisted: ' ), array ( '8O :twisted: :( :? :(', - ' \'8O\' \':twisted:\' \':(\' \':?\' \':(\' ' + ' 8O :twisted: :( :? :( ' ), ); } @@ -236,11 +236,11 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase { ), array ( '8O :) additional text here :)', - '8O \':)\' additional text here \':)\' ' + '8O :) additional text here :) ' ), array ( ':) :) :) :)', - ' \':)\' \':)\' \':)\' \':)\' ' + ' :) :) :) :) ' ), ); }