- Timestamp:
- 12/21/2015 02:45:43 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4/tests/phpunit/tests/formatting/WPTexturize.php
r35709 r36037 11 11 12 12 function test_disable() { 13 $this->assertEquals('<pre>--- </pre>', wptexturize('<pre>---</pre>'));14 $this->assertEquals('<pre><code></code>-- </pre>', wptexturize('<pre><code></code>--</pre>'));15 16 $this->assertEquals( '<code>--- </code>', wptexturize( '<code>---</code>' ) );17 $this->assertEquals( '<kbd>--- </kbd>', wptexturize( '<kbd>---</kbd>' ) );18 $this->assertEquals( '<style>--- </style>', wptexturize( '<style>---</style>' ) );19 $this->assertEquals( '<script>--- </script>', wptexturize( '<script>---</script>' ) );20 $this->assertEquals( '<tt>--- </tt>', wptexturize( '<tt>---</tt>' ) );13 $this->assertEquals('<pre>---&</pre>', wptexturize('<pre>---&</pre>')); 14 $this->assertEquals('<pre><code></code>--&</pre>', wptexturize('<pre><code></code>--&</pre>')); 15 16 $this->assertEquals( '<code>---&</code>', wptexturize( '<code>---&</code>' ) ); 17 $this->assertEquals( '<kbd>---&</kbd>', wptexturize( '<kbd>---&</kbd>' ) ); 18 $this->assertEquals( '<style>---&</style>', wptexturize( '<style>---&</style>' ) ); 19 $this->assertEquals( '<script>---&</script>', wptexturize( '<script>---&</script>' ) ); 20 $this->assertEquals( '<tt>---&</tt>', wptexturize( '<tt>---&</tt>' ) ); 21 21 22 22 $this->assertEquals('<code>href="baba"</code> “baba”', wptexturize('<code>href="baba"</code> "baba"')); … … 1269 1269 array( 1270 1270 '[ photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a> ]', 1271 '[ photos by <a href="http://example.com/?a[]=1& a[]=2"> this guy & that guy </a> ]',1271 '[ photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a> ]', 1272 1272 ), 1273 1273 array( 1274 1274 '[photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a>]', 1275 '[photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a>]', 1275 '[photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a>]', 1276 ), 1277 array( 1278 '& <script>&&</script>', 1279 '& <script>&&</script>' 1276 1280 ), 1277 1281 array(
Note: See TracChangeset
for help on using the changeset viewer.