File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ namespace Embed \Providers \OEmbed ;
3+
4+ class Shoudio extends OEmbedImplementation
5+ {
6+ /**
7+ * {@inheritdoc}
8+ */
9+ public static function getEndPoint ()
10+ {
11+ return 'http://shoudio.com/api/oembed ' ;
12+ }
13+
14+ /**
15+ * {@inheritdoc}
16+ */
17+ public static function getPatterns ()
18+ {
19+ return ['https?://shoudio.com/* ' ];
20+ }
21+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ class ShoudioTest extends PHPUnit_Framework_TestCase
3+ {
4+ public function testOne ()
5+ {
6+ $ info = Embed \Embed::create ('https://shoudio.com/collection/1235/wendelbosroute.html ' );
7+
8+ $ this ->assertEquals ($ info ->title , "Wendelbosroute " );
9+ $ this ->assertEquals ($ info ->type , 'link ' );
10+ $ this ->assertEquals ($ info ->providerName , 'Shoudio, the location based audio platform ' );
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments