1 | <?php |
||
10 | class InstagramTest extends \PHPUnit_Framework_TestCase |
||
11 | { |
||
12 | const PROFILE_RESPONSE = |
||
13 | '{ |
||
14 | "meta": { |
||
15 | "code": 200 |
||
16 | }, |
||
17 | "data": { |
||
18 | "username": "johnnydonny", |
||
19 | "bio": "A life on the edge", |
||
20 | "website": "http://blog.johnnydonny.com", |
||
21 | "profile_picture": "http://images.ak.instagram.com/profiles/profile_weird_numbers.jpg", |
||
22 | "full_name": "John Doe", |
||
23 | "counts": { |
||
24 | "media": 131, |
||
25 | "followed_by": 80, |
||
26 | "follows": 64 |
||
27 | }, |
||
28 | "id": "1111222333" |
||
29 | } |
||
30 | }'; |
||
31 | |||
32 | /** |
||
33 | * @var Instagram |
||
34 | */ |
||
35 | protected $extractor; |
||
36 | |||
37 | /** |
||
38 | * Sets up the fixture, for example, opens a network connection. |
||
39 | * This method is called before a test is executed. |
||
40 | */ |
||
41 | protected function setUp() |
||
56 | |||
57 | /** |
||
58 | * Tears down the fixture, for example, closes a network connection. |
||
59 | * This method is called after a test is executed. |
||
60 | */ |
||
61 | protected function tearDown() |
||
64 | |||
65 | public function testDoesNotSupportEmail() |
||
70 | |||
71 | public function testDoesNotSupportVerifiedEmail() |
||
76 | |||
77 | public function testDoesNotSupportLocation() |
||
82 | |||
83 | public function testGetUniqueId() |
||
87 | |||
88 | public function testUsername() |
||
92 | |||
93 | public function testGetFirstName() |
||
97 | |||
98 | public function testGetLastName() |
||
102 | |||
103 | public function testGetFullName() |
||
107 | |||
108 | public function testGetDescription() |
||
112 | |||
113 | public function testGetImageUrl() |
||
117 | |||
118 | public function testGetProfileUrl() |
||
122 | |||
123 | public function testGetWebsites() |
||
130 | |||
131 | public function testGetExtras() |
||
140 | } |
||
141 |