| 1 | Test Suite
|
|---|
| 2 | TestShortcode
|
|---|
| 3 | FF.FFFF........FFFFFFSSSS
|
|---|
| 4 |
|
|---|
| 5 | Time: 6 seconds, Memory: 46.00Mb
|
|---|
| 6 |
|
|---|
| 7 | There were 12 failures:
|
|---|
| 8 |
|
|---|
| 9 | 1) TestShortcode::test_noatts
|
|---|
| 10 | Failed asserting that two strings are equal.
|
|---|
| 11 | --- Expected
|
|---|
| 12 | +++ Actual
|
|---|
| 13 | @@ @@
|
|---|
| 14 | -
|
|---|
| 15 | +Array
|
|---|
| 16 |
|
|---|
| 17 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:64
|
|---|
| 18 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 19 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 20 |
|
|---|
| 21 | 2) TestShortcode::test_one_att
|
|---|
| 22 | Failed asserting that two arrays are equal.
|
|---|
| 23 | --- Expected
|
|---|
| 24 | +++ Actual
|
|---|
| 25 | @@ @@
|
|---|
| 26 | Array
|
|---|
| 27 | (
|
|---|
| 28 | + [0] => /
|
|---|
| 29 | [foo] => asdf
|
|---|
| 30 | )
|
|---|
| 31 |
|
|---|
| 32 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:70
|
|---|
| 33 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 34 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 35 |
|
|---|
| 36 | 3) TestShortcode::test_two_atts
|
|---|
| 37 | Failed asserting that two arrays are equal.
|
|---|
| 38 | --- Expected
|
|---|
| 39 | +++ Actual
|
|---|
| 40 | @@ @@
|
|---|
| 41 | Array
|
|---|
| 42 | (
|
|---|
| 43 | + [0] => /
|
|---|
| 44 | [bar] => bing
|
|---|
| 45 | [foo] => asdf
|
|---|
| 46 | )
|
|---|
| 47 |
|
|---|
| 48 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:81
|
|---|
| 49 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 50 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 51 |
|
|---|
| 52 | 4) TestShortcode::test_noatts_enclosing
|
|---|
| 53 | Failed asserting that two strings are equal.
|
|---|
| 54 | --- Expected
|
|---|
| 55 | +++ Actual
|
|---|
| 56 | @@ @@
|
|---|
| 57 | -content
|
|---|
| 58 | +
|
|---|
| 59 |
|
|---|
| 60 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:88
|
|---|
| 61 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 62 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 63 |
|
|---|
| 64 | 5) TestShortcode::test_one_att_enclosing
|
|---|
| 65 | Failed asserting that two strings are equal.
|
|---|
| 66 | --- Expected
|
|---|
| 67 | +++ Actual
|
|---|
| 68 | @@ @@
|
|---|
| 69 | -content
|
|---|
| 70 | +
|
|---|
| 71 |
|
|---|
| 72 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:95
|
|---|
| 73 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 74 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 75 |
|
|---|
| 76 | 6) TestShortcode::test_two_atts_enclosing
|
|---|
| 77 | Failed asserting that two strings are equal.
|
|---|
| 78 | --- Expected
|
|---|
| 79 | +++ Actual
|
|---|
| 80 | @@ @@
|
|---|
| 81 | -content
|
|---|
| 82 | +
|
|---|
| 83 |
|
|---|
| 84 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:102
|
|---|
| 85 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 86 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 87 |
|
|---|
| 88 | 7) TestShortcode::test_nested_tags
|
|---|
| 89 | Failed asserting that two strings are equal.
|
|---|
| 90 | --- Expected
|
|---|
| 91 | +++ Actual
|
|---|
| 92 | @@ @@
|
|---|
| 93 | -content = abc = foo
|
|---|
| 94 | -def = 123
|
|---|
| 95 | -0 = http://wordpress.com
|
|---|
| 96 | -
|
|---|
| 97 | +content = [dumptag abc="foo" def=123 http://wordpress.com/][/baztag]
|
|---|
| 98 |
|
|---|
| 99 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:167
|
|---|
| 100 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 101 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 102 |
|
|---|
| 103 | 8) TestShortcode::test_tag_escaped
|
|---|
| 104 | Failed asserting that two strings are equal.
|
|---|
| 105 | --- Expected
|
|---|
| 106 | +++ Actual
|
|---|
| 107 | @@ @@
|
|---|
| 108 | -[baztag foo="bar"]the content[/baztag]
|
|---|
| 109 | +content = the content[/baztag]]
|
|---|
| 110 |
|
|---|
| 111 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:180
|
|---|
| 112 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 113 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 114 |
|
|---|
| 115 | 9) TestShortcode::test_tag_not_escaped
|
|---|
| 116 | Failed asserting that two strings are equal.
|
|---|
| 117 | --- Expected
|
|---|
| 118 | +++ Actual
|
|---|
| 119 | @@ @@
|
|---|
| 120 | -[foo = foo = bar]
|
|---|
| 121 | +foo = foo = bar]
|
|---|
| 122 |
|
|---|
| 123 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:190
|
|---|
| 124 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 125 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 126 |
|
|---|
| 127 | 10) TestShortcode::test_mixed_tags
|
|---|
| 128 | Failed asserting that two strings are equal.
|
|---|
| 129 | --- Expected
|
|---|
| 130 | +++ Actual
|
|---|
| 131 | @@ @@
|
|---|
| 132 | So this is a post with foo = some stuff and a bunch of tags.
|
|---|
| 133 | foo = no foo
|
|---|
| 134 | content =
|
|---|
| 135 | Here's some content
|
|---|
| 136 | on more than one line
|
|---|
| 137 | +[/baztag]
|
|---|
| 138 | foo = 1 content = foo = 2 content =
|
|---|
| 139 | content =
|
|---|
| 140 | more content
|
|---|
| 141 | +[/baztag]
|
|---|
| 142 |
|
|---|
| 143 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:239
|
|---|
| 144 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 145 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 146 |
|
|---|
| 147 | 11) TestShortcode::test_utf8_whitespace_1
|
|---|
| 148 | Failed asserting that <string:> is equal to
|
|---|
| 149 | Array
|
|---|
| 150 | (
|
|---|
| 151 | [foo] => bar
|
|---|
| 152 | [baz] => 123
|
|---|
| 153 | )
|
|---|
| 154 | .
|
|---|
| 155 |
|
|---|
| 156 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:247
|
|---|
| 157 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 158 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 159 |
|
|---|
| 160 | 12) TestShortcode::test_utf8_whitespace_2
|
|---|
| 161 | Failed asserting that two arrays are equal.
|
|---|
| 162 | --- Expected
|
|---|
| 163 | +++ Actual
|
|---|
| 164 | @@ @@
|
|---|
| 165 | Array
|
|---|
| 166 | (
|
|---|
| 167 | - [abc] => def
|
|---|
| 168 | + [0] => |
|---|
| 169 | abc="def"
|
|---|
| 170 | [foo] => bar
|
|---|
| 171 | )
|
|---|
| 172 |
|
|---|
| 173 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:256
|
|---|
| 174 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 175 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 176 |
|
|---|
| 177 | There were 4 skipped tests:
|
|---|
| 178 |
|
|---|
| 179 | 1) TestShortcode::test_shortcodes_enabled
|
|---|
| 180 |
|
|---|
| 181 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:269
|
|---|
| 182 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 183 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 184 |
|
|---|
| 185 | 2) TestShortcode::test_shortcodes_disabled
|
|---|
| 186 |
|
|---|
| 187 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:278
|
|---|
| 188 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 189 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 190 |
|
|---|
| 191 | 3) TestShortcode::test_shortcodes_strip
|
|---|
| 192 |
|
|---|
| 193 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:287
|
|---|
| 194 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 195 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 196 |
|
|---|
| 197 | 4) TestShortcode::test_shortcodes_faux
|
|---|
| 198 |
|
|---|
| 199 | /opt/local/apache2/htdocs/wordpress-tests/wp-testcase/test_shortcode.php:296
|
|---|
| 200 | /opt/local/apache2/htdocs/wordpress-tests/wp-testlib/base.php:550
|
|---|
| 201 | /opt/local/apache2/htdocs/wordpress-tests/wp-test.php:128
|
|---|
| 202 |
|
|---|
| 203 | FAILURES!
|
|---|
| 204 | Tests: 25, Assertions: 38, Failures: 12, Skipped: 4.
|
|---|