File tree 3 files changed +10
-8
lines changed 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 5
5
- 5.4
6
6
- 5.5
7
7
- 5.6
8
- - hhvm
9
8
10
9
before_script :
11
10
- composer install -n --dev --prefer-source
Original file line number Diff line number Diff line change 4
4
5
5
use Omnipay \Tests \TestCase ;
6
6
7
- class ListInvoicesRequestTest extends TestCase
7
+ class ListPlansTest extends TestCase
8
8
{
9
+ /** @var ListPlansRequest */
10
+ protected $ request ;
11
+
9
12
public function setUp ()
10
13
{
11
14
$ this ->request = new ListPlansRequest ($ this ->getHttpClient (), $ this ->getHttpRequest ());
@@ -18,7 +21,7 @@ public function testEndpoint()
18
21
19
22
public function testSendSuccess ()
20
23
{
21
- $ this ->setMockHttpResponse ('ListPlans .txt ' );
24
+ $ this ->setMockHttpResponse ('ListPlansSuccess .txt ' );
22
25
$ response = $ this ->request ->send ();
23
26
24
27
$ this ->assertTrue ($ response ->isSuccessful ());
@@ -33,6 +36,6 @@ public function testSendSuccess()
33
36
*/
34
37
public function testSendFailure ()
35
38
{
36
- this ->assertTrue (true );
39
+ $ this ->assertTrue (true );
37
40
}
38
41
}
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ Access-Control-Allow-Credentials: true
8
8
Cache-Control: no-cache, no-store
9
9
10
10
{
11
- "object" => "list",
12
- "url" => "/v1/plans",
13
- "has_more" => false,
14
- "data" => [
11
+ "object": "list",
12
+ "url": "/v1/plans",
13
+ "has_more": false,
14
+ "data": [
15
15
{
16
16
"id": "test-1",
17
17
"object": "plan",
You can’t perform that action at this time.
0 commit comments