@@ -19,20 +19,20 @@ public function testGetNameNotEmpty()
19
19
{
20
20
$ name = $ this ->gateway ->getName ();
21
21
$ this ->assertNotEmpty ($ name );
22
- $ this ->assertInternalType ( ' string ' , $ name );
22
+ $ this ->assertIsString ( $ name );
23
23
}
24
24
25
25
public function testGetShortNameNotEmpty ()
26
26
{
27
27
$ shortName = $ this ->gateway ->getShortName ();
28
28
$ this ->assertNotEmpty ($ shortName );
29
- $ this ->assertInternalType ( ' string ' , $ shortName );
29
+ $ this ->assertIsString ( $ shortName );
30
30
}
31
31
32
32
public function testGetDefaultParametersReturnsArray ()
33
33
{
34
34
$ settings = $ this ->gateway ->getDefaultParameters ();
35
- $ this ->assertInternalType ( ' array ' , $ settings );
35
+ $ this ->assertIsString ( $ settings );
36
36
}
37
37
38
38
public function testDefaultParametersHaveMatchingMethods ()
@@ -71,7 +71,7 @@ public function testCurrency()
71
71
public function testSupportsAuthorize ()
72
72
{
73
73
$ supportsAuthorize = $ this ->gateway ->supportsAuthorize ();
74
- $ this ->assertInternalType ( ' boolean ' , $ supportsAuthorize );
74
+ $ this ->assertIsBool ( $ supportsAuthorize );
75
75
76
76
if ($ supportsAuthorize ) {
77
77
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->authorize ());
@@ -83,7 +83,7 @@ public function testSupportsAuthorize()
83
83
public function testSupportsCompleteAuthorize ()
84
84
{
85
85
$ supportsCompleteAuthorize = $ this ->gateway ->supportsCompleteAuthorize ();
86
- $ this ->assertInternalType ( ' boolean ' , $ supportsCompleteAuthorize );
86
+ $ this ->assertIsBool ( $ supportsCompleteAuthorize );
87
87
88
88
if ($ supportsCompleteAuthorize ) {
89
89
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->completeAuthorize ());
@@ -95,7 +95,7 @@ public function testSupportsCompleteAuthorize()
95
95
public function testSupportsCapture ()
96
96
{
97
97
$ supportsCapture = $ this ->gateway ->supportsCapture ();
98
- $ this ->assertInternalType ( ' boolean ' , $ supportsCapture );
98
+ $ this ->assertIsBool ( $ supportsCapture );
99
99
100
100
if ($ supportsCapture ) {
101
101
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->capture ());
@@ -107,7 +107,7 @@ public function testSupportsCapture()
107
107
public function testSupportsPurchase ()
108
108
{
109
109
$ supportsPurchase = $ this ->gateway ->supportsPurchase ();
110
- $ this ->assertInternalType ( ' boolean ' , $ supportsPurchase );
110
+ $ this ->assertIsBool ( $ supportsPurchase );
111
111
112
112
if ($ supportsPurchase ) {
113
113
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->purchase ());
@@ -119,7 +119,7 @@ public function testSupportsPurchase()
119
119
public function testSupportsCompletePurchase ()
120
120
{
121
121
$ supportsCompletePurchase = $ this ->gateway ->supportsCompletePurchase ();
122
- $ this ->assertInternalType ( ' boolean ' , $ supportsCompletePurchase );
122
+ $ this ->assertIsBool ( $ supportsCompletePurchase );
123
123
124
124
if ($ supportsCompletePurchase ) {
125
125
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->completePurchase ());
@@ -131,7 +131,7 @@ public function testSupportsCompletePurchase()
131
131
public function testSupportsRefund ()
132
132
{
133
133
$ supportsRefund = $ this ->gateway ->supportsRefund ();
134
- $ this ->assertInternalType ( ' boolean ' , $ supportsRefund );
134
+ $ this ->assertIsBool ( $ supportsRefund );
135
135
136
136
if ($ supportsRefund ) {
137
137
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->refund ());
@@ -143,7 +143,7 @@ public function testSupportsRefund()
143
143
public function testSupportsVoid ()
144
144
{
145
145
$ supportsVoid = $ this ->gateway ->supportsVoid ();
146
- $ this ->assertInternalType ( ' boolean ' , $ supportsVoid );
146
+ $ this ->assertIsBool ( $ supportsVoid );
147
147
148
148
if ($ supportsVoid ) {
149
149
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->void ());
@@ -155,7 +155,7 @@ public function testSupportsVoid()
155
155
public function testSupportsCreateCard ()
156
156
{
157
157
$ supportsCreate = $ this ->gateway ->supportsCreateCard ();
158
- $ this ->assertInternalType ( ' boolean ' , $ supportsCreate );
158
+ $ this ->assertIsBool ( $ supportsCreate );
159
159
160
160
if ($ supportsCreate ) {
161
161
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->createCard ());
@@ -167,7 +167,7 @@ public function testSupportsCreateCard()
167
167
public function testSupportsDeleteCard ()
168
168
{
169
169
$ supportsDelete = $ this ->gateway ->supportsDeleteCard ();
170
- $ this ->assertInternalType ( ' boolean ' , $ supportsDelete );
170
+ $ this ->assertIsBool ( $ supportsDelete );
171
171
172
172
if ($ supportsDelete ) {
173
173
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->deleteCard ());
@@ -179,7 +179,7 @@ public function testSupportsDeleteCard()
179
179
public function testSupportsUpdateCard ()
180
180
{
181
181
$ supportsUpdate = $ this ->gateway ->supportsUpdateCard ();
182
- $ this ->assertInternalType ( ' boolean ' , $ supportsUpdate );
182
+ $ this ->assertIsBool ( $ supportsUpdate );
183
183
184
184
if ($ supportsUpdate ) {
185
185
$ this ->assertInstanceOf (RequestInterface::class, $ this ->gateway ->updateCard ());
0 commit comments