File tree 3 files changed +49
-8
lines changed
3 files changed +49
-8
lines changed Original file line number Diff line number Diff line change 7
7
branches : [ master ]
8
8
9
9
jobs :
10
- build_php_73 :
10
+ build_php_74 :
11
11
12
12
runs-on : ubuntu-latest
13
13
17
17
- name : Setup PHP with PECL extension
18
18
uses : shivammathur/setup-php@v2
19
19
with :
20
- php-version : ' 7.3 '
20
+ php-version : ' 7.4 '
21
21
22
22
- name : Validate composer.json and composer.lock
23
23
run : composer validate --strict
66
66
67
67
- name : Run test suite
68
68
run : composer run-script test
69
+
70
+ build_php_81 :
71
+
72
+ runs-on : ubuntu-latest
73
+
74
+ steps :
75
+ - uses : actions/checkout@v2
76
+
77
+ - name : Setup PHP with PECL extension
78
+ uses : shivammathur/setup-php@v2
79
+ with :
80
+ php-version : ' 8.1'
81
+
82
+ - name : Validate composer.json and composer.lock
83
+ run : composer validate --strict
84
+
85
+ - name : Cache Composer packages
86
+ id : composer-cache
87
+ uses : actions/cache@v2
88
+ with :
89
+ path : vendor
90
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
91
+ restore-keys : |
92
+ ${{ runner.os }}-php-
93
+
94
+ - name : Install dependencies
95
+ run : composer install --prefer-dist --no-progress
96
+
97
+ - name : Run test suite
98
+ run : composer run-script test
Original file line number Diff line number Diff line change @@ -21,10 +21,4 @@ public function isInstanceOfBuyer()
21
21
{
22
22
$ this ->assertEquals (true , LaravelBitpay::Buyer () instanceof Buyer);
23
23
}
24
-
25
- /** @test */
26
- public function isInstanceOfRefund ()
27
- {
28
- $ this ->assertEquals (true , LaravelBitpay::Refund () instanceof Refund);
29
- }
30
24
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Vrajroham \LaravelBitpay \Tests ;
4
+
5
+ use BitPaySDK \Model \Invoice \Refund ;
6
+ use PHPUnit \Framework \TestCase ;
7
+ use Vrajroham \LaravelBitpay \LaravelBitpay ;
8
+
9
+
10
+ class LaravelBitpayRefundTest extends TestCase
11
+ {
12
+ /** @test */
13
+ public function isInstanceOfRefund ()
14
+ {
15
+ $ this ->assertEquals (true , LaravelBitpay::Refund () instanceof Refund);
16
+ }
17
+ }
You can’t perform that action at this time.
0 commit comments