Skip to content

Commit 631ea03

Browse files
committed
Update tests to align with new html_entity_decode flags
1 parent 0be2bb3 commit 631ea03

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

tests/cache/www.wired.com.wp-json-oembed-1.0-embed.f979e136668a2b1f8801a26690847913.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@
100100
],
101101
'statusCode' => 200,
102102
'reasonPhrase' => 'OK',
103-
'body' => '{"version":"1.0","provider_name":"WIRED","provider_url":"https:\\/\\/www.wired.com","author_name":"Wired Staff","author_url":"https:\\/\\/www.wired.com\\/author\\/wired-staff\\/","title":"Review: Yi 4K Action Camera","type":"rich","width":600,"height":338,"html":"<blockquote class=\\"wp-embedded-content\\"><a href=\\"https:\\/\\/www.wired.com\\/2016\\/07\\/review-yi-4k-action-camera\\/\\">Review: Yi 4K Action Camera<\\/a><\\/blockquote>\\n<script type=\'text\\/javascript\'>\\n<!--\\/\\/--><![CDATA[\\/\\/><!--\\n\\t\\t!function(a,b){\\"use strict\\";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf(\\"MSIE 10\\"),h=!!navigator.userAgent.match(\\/Trident.*rv:11\\\\.\\/),i=b.querySelectorAll(\\"iframe.wp-embedded-content\\");for(c=0;c<i.length;c++)if(d=i[c],!d.getAttribute(\\"data-secret\\")){if(f=Math.random().toString(36).substr(2,10),d.src+=\\"#?secret=\\"+f,d.setAttribute(\\"data-secret\\",f),g||h)a=d.cloneNode(!0),a.removeAttribute(\\"security\\"),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!\\/[^a-zA-Z0-9]\\/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll(\'iframe[data-secret=\\"\'+d.secret+\'\\"]\'),k=b.querySelectorAll(\'blockquote[data-secret=\\"\'+d.secret+\'\\"]\');for(e=0;e<k.length;e++)k[e].style.display=\\"none\\";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute(\\"style\\"),\\"height\\"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if(\\"link\\"===d.message)if(h=b.createElement(\\"a\\"),i=b.createElement(\\"a\\"),h.href=f.getAttribute(\\"src\\"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener(\\"message\\",a.wp.receiveEmbedMessage,!1),b.addEventListener(\\"DOMContentLoaded\\",c,!1),a.addEventListener(\\"load\\",c,!1)}(window,document);\\n\\/\\/--><!]]>\\n<\\/script><iframe sandbox=\\"allow-scripts\\" security=\\"restricted\\" src=\\"https:\\/\\/www.wired.com\\/2016\\/07\\/review-yi-4k-action-camera\\/embed\\/\\" width=\\"600\\" height=\\"338\\" title=\\"&#8220;Review: Yi 4K Action Camera&#8221; &#8212; WIRED\\" frameborder=\\"0\\" marginwidth=\\"0\\" marginheight=\\"0\\" scrolling=\\"no\\" class=\\"wp-embedded-content\\"><\\/iframe>","thumbnail_url":"https:\\/\\/www.wired.com\\/wp-content\\/uploads\\/2016\\/07\\/Yi-4KHP.jpg","thumbnail_width":600,"thumbnail_height":337}'
103+
'body' => '{"version":"1.0","provider_name":"WIRED","provider_url":"https:\\/\\/www.wired.com","author_name":"Wired Staff","author_url":"https:\\/\\/www.wired.com\\/author\\/wired-staff\\/","title":"Review: Yi 4K Action Camera","type":"rich","width":600,"height":338,"html":"<blockquote class=\\"wp-embedded-content\\"><a href=\\"https:\\/\\/www.wired.com\\/2016\\/07\\/review-yi-4k-action-camera\\/\\">Review: Yi 4K Action Camera<\\/a><\\/blockquote>\\n<script type=\'text\\/javascript\'>\\n<!--\\/\\/--><![CDATA[\\/\\/><!--\\n !function(a,b){\\"use strict\\";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf(\\"MSIE 10\\"),h=!!navigator.userAgent.match(\\/Trident.*rv:11\\\\.\\/),i=b.querySelectorAll(\\"iframe.wp-embedded-content\\");for(c=0;c<i.length;c++)if(d=i[c],!d.getAttribute(\\"data-secret\\")){if(f=Math.random().toString(36).substr(2,10),d.src+=\\"#?secret=\\"+f,d.setAttribute(\\"data-secret\\",f),g||h)a=d.cloneNode(!0),a.removeAttribute(\\"security\\"),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!\\/[^a-zA-Z0-9]\\/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll(\'iframe[data-secret=\\"\'+d.secret+\'\\"]\'),k=b.querySelectorAll(\'blockquote[data-secret=\\"\'+d.secret+\'\\"]\');for(e=0;e<k.length;e++)k[e].style.display=\\"none\\";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute(\\"style\\"),\\"height\\"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if (~~g<200)g=200;f.height=g}if(\\"link\\"===d.message)if(h=b.createElement(\\"a\\"),i=b.createElement(\\"a\\"),h.href=f.getAttribute(\\"src\\"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener(\\"message\\",a.wp.receiveEmbedMessage,!1),b.addEventListener(\\"DOMContentLoaded\\",c,!1),a.addEventListener(\\"load\\",c,!1)}(window,document);\\n\\/\\/--><!]]>\\n<\\/script><iframe sandbox=\\"allow-scripts\\" security=\\"restricted\\" src=\\"https:\\/\\/www.wired.com\\/2016\\/07\\/review-yi-4k-action-camera\\/embed\\/\\" width=\\"600\\" height=\\"338\\" title=\\"&#8220;Review: Yi 4K Action Camera&#8221; &#8212; WIRED\\" frameborder=\\"0\\" marginwidth=\\"0\\" marginheight=\\"0\\" scrolling=\\"no\\" class=\\"wp-embedded-content\\"><\\/iframe>","thumbnail_url":"https:\\/\\/www.wired.com\\/wp-content\\/uploads\\/2016\\/07\\/Yi-4KHP.jpg","thumbnail_width":600,"thumbnail_height":337}'
104104
];

tests/fixtures/www.flickr.com.photos-desescribir.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
'height' => 64
122122
]
123123
],
124-
'description' => 'Explore desescribir&#x27;s 618 photos on Flickr!'
124+
'description' => 'Explore desescribir\'s 618 photos on Flickr!'
125125
]
126126
]
127127
];

tests/fixtures/www.wired.com..1202600986b37d2c6a30336f82c671f8.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'authorUrl' => 'https://www.wired.com/author/wired-staff/',
77
'cms' => null,
88
'code' => [
9-
'html' => '<blockquote class="wp-embedded-content"><a href="https://www.wired.com/2016/07/review-yi-4k-action-camera/">Review: Yi 4K Action Camera</a></blockquote> <script type=\'text/javascript\'> <!--//--><![CDATA[//><!-- !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++)if(d=i[c],!d.getAttribute("data-secret")){if(f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f),g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll(\'iframe[data-secret="\'+d.secret+\'"]\'),k=b.querySelectorAll(\'blockquote[data-secret="\'+d.secret+\'"]\');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); //--><!]]> </script><iframe sandbox="allow-scripts" security="restricted" src="https://www.wired.com/2016/07/review-yi-4k-action-camera/embed/" width="600" height="338" title="&#8220;Review: Yi 4K Action Camera&#8221; &#8212; WIRED" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>',
9+
'html' => '<blockquote class="wp-embedded-content"><a href="https://www.wired.com/2016/07/review-yi-4k-action-camera/">Review: Yi 4K Action Camera</a></blockquote> <script type=\'text/javascript\'> <!--//--><![CDATA[//><!-- !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++)if(d=i[c],!d.getAttribute("data-secret")){if(f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f),g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll(\'iframe[data-secret="\'+d.secret+\'"]\'),k=b.querySelectorAll(\'blockquote[data-secret="\'+d.secret+\'"]\');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if (~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); //--><!]]> </script><iframe sandbox="allow-scripts" security="restricted" src="https://www.wired.com/2016/07/review-yi-4k-action-camera/embed/" width="600" height="338" title="&#8220;Review: Yi 4K Action Camera&#8221; &#8212; WIRED" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>',
1010
'width' => 600,
1111
'height' => 338,
1212
'ratio' => 56.333
@@ -80,7 +80,7 @@
8080
'html' => '<blockquote class="wp-embedded-content"><a href="https://www.wired.com/2016/07/review-yi-4k-action-camera/">Review: Yi 4K Action Camera</a></blockquote>
8181
<script type=\'text/javascript\'>
8282
<!--//--><![CDATA[//><!--
83-
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++)if(d=i[c],!d.getAttribute("data-secret")){if(f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f),g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll(\'iframe[data-secret="\'+d.secret+\'"]\'),k=b.querySelectorAll(\'blockquote[data-secret="\'+d.secret+\'"]\');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
83+
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++)if(d=i[c],!d.getAttribute("data-secret")){if(f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f),g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll(\'iframe[data-secret="\'+d.secret+\'"]\'),k=b.querySelectorAll(\'blockquote[data-secret="\'+d.secret+\'"]\');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if (~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
8484
//--><!]]>
8585
</script><iframe sandbox="allow-scripts" security="restricted" src="https://www.wired.com/2016/07/review-yi-4k-action-camera/embed/" width="600" height="338" title="&#8220;Review: Yi 4K Action Camera&#8221; &#8212; WIRED" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>',
8686
'thumbnail_url' => 'https://www.wired.com/wp-content/uploads/2016/07/Yi-4KHP.jpg',
@@ -152,7 +152,7 @@
152152
'articleSection' => 'culture',
153153
'author' => [
154154
'@type' => 'Person',
155-
'name' => 'Geek&#039;s Guide to the Galaxy'
155+
'name' => 'Geek\'s Guide to the Galaxy'
156156
],
157157
'description' => 'Ursula K. Le Guin\'s 1974 novel, about a society with no government or laws, remains a thoughtful exploration of politics and economics decades later.',
158158
'image' => [
@@ -189,7 +189,7 @@
189189
'articleSection' => 'culture',
190190
'author' => [
191191
'@type' => 'Person',
192-
'name' => 'Geek&#039;s Guide to the Galaxy'
192+
'name' => 'Geek\'s Guide to the Galaxy'
193193
],
194194
'description' => 'The story-driven genre is enjoying an indie renaissance, thanks to new tools that are making the coding process simpler than ever.',
195195
'image' => [
@@ -226,7 +226,7 @@
226226
'articleSection' => 'culture',
227227
'author' => [
228228
'@type' => 'Person',
229-
'name' => 'Geek&#039;s Guide to the Galaxy'
229+
'name' => 'Geek\'s Guide to the Galaxy'
230230
],
231231
'description' => 'But Everybody Has a Podcast (Except You) author Griffin McElroy can help.',
232232
'image' => [
@@ -263,7 +263,7 @@
263263
'articleSection' => 'culture',
264264
'author' => [
265265
'@type' => 'Person',
266-
'name' => 'Geek&#039;s Guide to the Galaxy'
266+
'name' => 'Geek\'s Guide to the Galaxy'
267267
],
268268
'description' => 'The Amazon series Upload shows a comedic—and probably more realistic—version of what would happen if humans could live online after they die.',
269269
'image' => [
@@ -300,7 +300,7 @@
300300
'articleSection' => 'culture',
301301
'author' => [
302302
'@type' => 'Person',
303-
'name' => 'Geek&#039;s Guide to the Galaxy'
303+
'name' => 'Geek\'s Guide to the Galaxy'
304304
],
305305
'description' => 'Ultima artist Denis Loubet knows this for a fact.',
306306
'image' => [
@@ -338,7 +338,7 @@
338338
'articleSection' => 'culture',
339339
'author' => [
340340
'@type' => 'Person',
341-
'name' => 'Geek&#039;s Guide to the Galaxy'
341+
'name' => 'Geek\'s Guide to the Galaxy'
342342
],
343343
'description' => 'The new Netflix animated series puts a new spin on old tales.',
344344
'image' => [
@@ -375,7 +375,7 @@
375375
'articleSection' => 'culture',
376376
'author' => [
377377
'@type' => 'Person',
378-
'name' => 'Geek&#039;s Guide to the Galaxy'
378+
'name' => 'Geek\'s Guide to the Galaxy'
379379
],
380380
'description' => 'David Gerrold\'s new novel Hella is about a low-gravity planet inhabited by dinosaur-like aliens. It does deep on the logistics of settling an alien planet.',
381381
'image' => [
@@ -412,7 +412,7 @@
412412
'articleSection' => 'culture',
413413
'author' => [
414414
'@type' => 'Person',
415-
'name' => 'Geek&#039;s Guide to the Galaxy'
415+
'name' => 'Geek\'s Guide to the Galaxy'
416416
],
417417
'description' => 'Ruth Wilson\'s character is the highlight of HBO\'s His Dark Materials.',
418418
'image' => [
@@ -526,7 +526,7 @@
526526
'articleSection' => 'culture',
527527
'author' => [
528528
'@type' => 'Person',
529-
'name' => 'Geek&#039;s Guide to the Galaxy'
529+
'name' => 'Geek\'s Guide to the Galaxy'
530530
],
531531
'description' => 'The story-driven genre is enjoying an indie renaissance, thanks to new tools that are making the coding process simpler than ever.',
532532
'image' => [
@@ -640,7 +640,7 @@
640640
'articleSection' => 'culture',
641641
'author' => [
642642
'@type' => 'Person',
643-
'name' => 'Geek&#039;s Guide to the Galaxy'
643+
'name' => 'Geek\'s Guide to the Galaxy'
644644
],
645645
'description' => 'Ursula K. Le Guin\'s 1974 novel, about a society with no government or laws, remains a thoughtful exploration of politics and economics decades later.',
646646
'image' => [

0 commit comments

Comments
 (0)