Feature: Manage oEmbed cache. Background: Given a WP install @require-wp-4.0 Scenario: Get HTML embed code for a given URL # Known provider not requiring discovery. When I run `wp embed fetch https://www.youtube.com/watch?v=dQw4w9WgXcQ --width=500` Then STDOUT should contain: """ https://www.youtube.com/ """ And STDOUT should contain: """ dQw4w9WgXcQ """ # Unknown provider (taken from https://oembed.com) requiring discovery but returning iframe so not sanitized. # Old versions of WP_oEmbed can trigger PHP "Only variables should be passed by reference" notices on discover so use "try" to cater for these. When I try `wp embed fetch http://LearningApps.org/259` Then the return code should be 0 And STDERR should not contain: """ Error: """ And STDOUT should contain: """ LearningApps.org/ """ And STDOUT should contain: """