additional_plugins/serendipity_event_oembed/oembed/tests/ProviderManagerTest.php

25 lines
698 B
PHP
Raw Normal View History

2011-12-14 12:18:36 +01:00
<?
/** Testfile f<EFBFBD>r die Provider Konfiguration
2011-12-14 12:18:36 +01:00
* @author: Grischa Brockhaus
*/
require_once(dirname(__FILE__) . '/../' . "config.php");
function test($manager, $url) {
$obj=$manager->provide($url,"object");
if (!empty($obj)) print_r($obj);
}
$manager = ProviderManager::getInstance();
// Youtube long link
//test($manager,"http://www.youtube.com/watch?v=8UVNT4wvIGY");
2011-12-14 12:18:36 +01:00
// Youtube Kurze URL
//test($manager,"http://youtu.be/8UVNT4wvIGY");
2011-12-14 12:18:36 +01:00
// Twitter
//test($manager,"https://twitter.com/#!/tagesschau/status/146562892454572032");
2011-12-14 12:18:36 +01:00
// flickr
test($manager,"http://www.flickr.com/photos/gbrockhaus/2052855443/in/set-72157603214268227/");
// vimeo
//test($manager,"http://vimeo.com/33510073");
2011-12-14 12:18:36 +01:00