-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestServiceVimeo.php
51 lines (48 loc) · 1.93 KB
/
TestServiceVimeo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* TestServiceVimeo.php
*
* @package Tests
* @author Michael Pratt <pratt@hablarmierda.net>
* @link http://www.michael-pratt.com/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once 'TestProviders.php';
class TestServiceVimeo extends TestProviders
{
protected $urls = array(
'valid' => array(
'http://vimeo.com/channels/staffpicks/66252440',
'http://vimeo.com/channels/staffpicks/65535198/',
'http://vimeo.com/groups/shortfilms/videos/66185763',
'https://vimeo.com/groups/shortfilms/videos/63313811/',
'http://vimeo.com/47360546',
'http://vimeo.com/39892335/',
'https://player.vimeo.com/video/65297606',
'https://player.vimeo.com/video/25818086/'
),
'invalid' => array(
'http://vimeo.com/groups/shortfilms/videos/66185763/stuff/here',
'http://vimeo.com/47360546/other/stuff/',
'http://vimeo.com/groups/shortfilms/123',
'http://vimeo.com/groups/shortfilms',
'http://vimeo.com/',
'http://vimeo.com/groups/stuff/?autoplay=1'
),
'normalize' => array(
'http://vimeo.com/channels/staffpicks/66252440' => 'http://vimeo.com/66252440',
'http://vimeo.com/channels/staffpicks/65535198/' => 'http://vimeo.com/65535198',
'https://player.vimeo.com/video/65297606' => 'http://vimeo.com/65297606',
'http://vimeo.com/groups/shortfilms/videos/63313811/' => 'http://vimeo.com/63313811',
'http://vimeo.com/47360546' => 'http://vimeo.com/47360546',
'http://vimeo.com/39892335/' => 'http://vimeo.com/39892335',
),
'fake' => array(
'type' => 'video',
'html' => '<iframe'
)
);
public function testProvider() { $this->validateProvider('Vimeo'); }
}