1 | <?php |
||
10 | class HarvestTest extends \PHPUnit_Framework_TestCase |
||
11 | { |
||
12 | const RESPONSE_PROFILE = |
||
13 | '{ |
||
14 | "user": { |
||
15 | "id": "012345678", |
||
16 | "email": "[email protected]", |
||
17 | "first_name": "John", |
||
18 | "last_name": "Doe", |
||
19 | "avatar_url": "something_n.jpg", |
||
20 | "timezone": "Pacific Time (US & Canada)", |
||
21 | "admin": true |
||
22 | } |
||
23 | }'; |
||
24 | |||
25 | /** |
||
26 | * @var Harvest |
||
27 | */ |
||
28 | protected $extractor; |
||
29 | |||
30 | /** |
||
31 | * Sets up the fixture, for example, opens a network connection. |
||
32 | * This method is called before a test is executed. |
||
33 | */ |
||
34 | protected function setUp() |
||
51 | |||
52 | /** |
||
53 | * Tears down the fixture, for example, closes a network connection. |
||
54 | * This method is called after a test is executed. |
||
55 | */ |
||
56 | protected function tearDown() |
||
59 | |||
60 | public function testGetUniqueId() |
||
64 | |||
65 | public function testGetUsername() |
||
69 | |||
70 | public function testGetFirstName() |
||
74 | |||
75 | public function testGetLastName() |
||
79 | |||
80 | public function testGetFullName() |
||
84 | |||
85 | public function testGetEmail() |
||
89 | |||
90 | public function testGetImageUrl() |
||
94 | |||
95 | public function testGetExtra() |
||
108 | } |
||
109 |