Autoload.php
8 years ago
TestEmbera.php
8 years ago
TestFakeResponse.php
8 years ago
TestFormatter.php
8 years ago
TestHtmlProcessor.php
8 years ago
TestHttpRequest.php
8 years ago
TestOembed.php
8 years ago
TestProviders.php
8 years ago
TestServiceAmCharts.php
8 years ago
TestServiceAnimatron.php
8 years ago
TestServiceAnimoto.php
8 years ago
TestServiceAolOn.php
8 years ago
TestServiceAppNet.php
8 years ago
TestServiceAudioSnaps.php
8 years ago
TestServiceBambuser.php
8 years ago
TestServiceBlipTv.php
8 years ago
TestServiceCacoo.php
8 years ago
TestServiceChartblocks.php
8 years ago
TestServiceChirbit.php
8 years ago
TestServiceCircuitLab.php
8 years ago
TestServiceClipland.php
8 years ago
TestServiceClyp.php
8 years ago
TestServiceCodepoints.php
8 years ago
TestServiceCollegeHumor.php
8 years ago
TestServiceCoub.php
8 years ago
TestServiceCrowdRanking.php
8 years ago
TestServiceDailyMile.php
8 years ago
TestServiceDailyMotion.php
8 years ago
TestServiceDeviantart.php
8 years ago
TestServiceDidacte.php
8 years ago
TestServiceDipity.php
8 years ago
TestServiceDotSub.php
8 years ago
TestServiceEdocr.php
8 years ago
TestServiceEgliseInfo.php
8 years ago
TestServiceFacebook.php
8 years ago
TestServiceFlickr.php
8 years ago
TestServiceFunnyOrDie.php
8 years ago
TestServiceGeographCI.php
8 years ago
TestServiceGeographDe.php
8 years ago
TestServiceGeographUk.php
8 years ago
TestServiceGettyImages.php
8 years ago
TestServiceGfycat.php
8 years ago
TestServiceGithubGist.php
8 years ago
TestServiceGmep.php
8 years ago
TestServiceHq23.php
8 years ago
TestServiceHuffduffer.php
8 years ago
TestServiceHulu.php
8 years ago
TestServiceIFTTT.php
8 years ago
TestServiceIFixIt.php
8 years ago
TestServiceInfogram.php
8 years ago
TestServiceInstagram.php
8 years ago
TestServiceIssuu.php
8 years ago
TestServiceIssuuFakeResponse.php
8 years ago
TestServiceKickstarter.php
8 years ago
TestServiceLearningApps.php
8 years ago
TestServiceMeetup.php
8 years ago
TestServiceMixCloud.php
8 years ago
TestServiceMobyPicture.php
8 years ago
TestServiceNFB.php
8 years ago
TestServiceOfficeMix.php
8 years ago
TestServiceOfficialFM.php
8 years ago
TestServiceOumy.php
8 years ago
TestServicePastery.php
8 years ago
TestServicePollDaddy.php
8 years ago
TestServicePollEverywhere.php
8 years ago
TestServicePortfolium.php
8 years ago
TestServiceRapidengage.php
8 years ago
TestServiceRdio.php
8 years ago
TestServiceReleaseWire.php
8 years ago
TestServiceRepubHub.php
8 years ago
TestServiceReverbnation.php
8 years ago
TestServiceRevision3.php
8 years ago
TestServiceRoomshare.php
8 years ago
TestServiceRutube.php
8 years ago
TestServiceSapo.php
8 years ago
TestServiceScreenr.php
8 years ago
TestServiceScribd.php
8 years ago
TestServiceShortNote.php
8 years ago
TestServiceShoudio.php
8 years ago
TestServiceShowTheWay.php
8 years ago
TestServiceSilk.php
8 years ago
TestServiceSketchfab.php
8 years ago
TestServiceSlideshare.php
8 years ago
TestServiceSoundCloud.php
8 years ago
TestServiceSpeakerDeck.php
8 years ago
TestServiceSpotify.php
8 years ago
TestServiceStreamOneCloud.php
8 years ago
TestServiceStreamable.php
8 years ago
TestServiceSway.php
8 years ago
TestServiceTed.php
8 years ago
TestServiceTheySaidSo.php
8 years ago
TestServiceTwitter.php
8 years ago
TestServiceUstream.php
8 years ago
TestServiceVerse.php
8 years ago
TestServiceVevo.php
8 years ago
TestServiceViddler.php
8 years ago
TestServiceVideoFork.php
8 years ago
TestServiceVideoJug.php
8 years ago
TestServiceVimeo.php
8 years ago
TestServiceVine.php
8 years ago
TestServiceWordpressTV.php
8 years ago
TestServiceYFrog.php
8 years ago
TestServiceYandex.php
8 years ago
TestServiceYoutube.php
8 years ago
TestUrl.php
8 years ago
Autoload.php
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Setup the environment |
| 4 | */ |
| 5 | date_default_timezone_set('UTC'); |
| 6 | if (file_exists(__DIR__ . '/../vendor/autoload.php')) |
| 7 | require __DIR__ . '/../vendor/autoload.php'; |
| 8 | else |
| 9 | require __DIR__ . '/../Lib/Embera/Autoload.php'; |
| 10 | |
| 11 | /** |
| 12 | * HttpRequest Mockup |
| 13 | * @codeCoverageIgnore |
| 14 | */ |
| 15 | class MockHttpRequest extends \Embera\HttpRequest |
| 16 | { |
| 17 | public $response; |
| 18 | public function fetch($url, array $params = array()) |
| 19 | { |
| 20 | $url = true; |
| 21 | return $this->response; |
| 22 | } |
| 23 | } |
| 24 | /** |
| 25 | * A custom Service |
| 26 | */ |
| 27 | class CustomService extends \Embera\Adapters\Service |
| 28 | { |
| 29 | protected $apiUrl = 'http://my-custom-service.com/oembed.json'; |
| 30 | public function validateUrl() |
| 31 | { |
| 32 | return preg_match('~customservice\.com/([0-9]+)~i', $this->url); |
| 33 | } |
| 34 | } |
| 35 | /** |
| 36 | * Oembed Mockup |
| 37 | * @codeCoverageIgnore |
| 38 | */ |
| 39 | class MockOembed extends \Embera\Oembed |
| 40 | { |
| 41 | public function getResourceInfo($behaviour, $apiUrl, $url, array $params = array()) |
| 42 | { |
| 43 | $behaviour = $apiUrl = $url = $params = true; |
| 44 | return array(); |
| 45 | } |
| 46 | } |
| 47 |