3
3
namespace Omnipay \Tests ;
4
4
5
5
use Omnipay \Common \AbstractGateway ;
6
+ use Omnipay \Common \Message \RequestInterface ;
6
7
7
8
/**
8
9
* Base Gateway Test class
@@ -73,7 +74,7 @@ public function testSupportsAuthorize()
73
74
$ this ->assertInternalType ('boolean ' , $ supportsAuthorize );
74
75
75
76
if ($ supportsAuthorize ) {
76
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->authorize ());
77
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->authorize ());
77
78
} else {
78
79
$ this ->assertFalse (method_exists ($ this ->gateway , 'authorize ' ));
79
80
}
@@ -85,7 +86,7 @@ public function testSupportsCompleteAuthorize()
85
86
$ this ->assertInternalType ('boolean ' , $ supportsCompleteAuthorize );
86
87
87
88
if ($ supportsCompleteAuthorize ) {
88
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->completeAuthorize ());
89
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->completeAuthorize ());
89
90
} else {
90
91
$ this ->assertFalse (method_exists ($ this ->gateway , 'completeAuthorize ' ));
91
92
}
@@ -97,7 +98,7 @@ public function testSupportsCapture()
97
98
$ this ->assertInternalType ('boolean ' , $ supportsCapture );
98
99
99
100
if ($ supportsCapture ) {
100
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->capture ());
101
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->capture ());
101
102
} else {
102
103
$ this ->assertFalse (method_exists ($ this ->gateway , 'capture ' ));
103
104
}
@@ -109,7 +110,7 @@ public function testSupportsPurchase()
109
110
$ this ->assertInternalType ('boolean ' , $ supportsPurchase );
110
111
111
112
if ($ supportsPurchase ) {
112
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->purchase ());
113
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->purchase ());
113
114
} else {
114
115
$ this ->assertFalse (method_exists ($ this ->gateway , 'purchase ' ));
115
116
}
@@ -121,7 +122,7 @@ public function testSupportsCompletePurchase()
121
122
$ this ->assertInternalType ('boolean ' , $ supportsCompletePurchase );
122
123
123
124
if ($ supportsCompletePurchase ) {
124
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->completePurchase ());
125
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->completePurchase ());
125
126
} else {
126
127
$ this ->assertFalse (method_exists ($ this ->gateway , 'completePurchase ' ));
127
128
}
@@ -133,7 +134,7 @@ public function testSupportsRefund()
133
134
$ this ->assertInternalType ('boolean ' , $ supportsRefund );
134
135
135
136
if ($ supportsRefund ) {
136
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->refund ());
137
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->refund ());
137
138
} else {
138
139
$ this ->assertFalse (method_exists ($ this ->gateway , 'refund ' ));
139
140
}
@@ -145,7 +146,7 @@ public function testSupportsVoid()
145
146
$ this ->assertInternalType ('boolean ' , $ supportsVoid );
146
147
147
148
if ($ supportsVoid ) {
148
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->void ());
149
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->void ());
149
150
} else {
150
151
$ this ->assertFalse (method_exists ($ this ->gateway , 'void ' ));
151
152
}
@@ -157,7 +158,7 @@ public function testSupportsCreateCard()
157
158
$ this ->assertInternalType ('boolean ' , $ supportsCreate );
158
159
159
160
if ($ supportsCreate ) {
160
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->createCard ());
161
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->createCard ());
161
162
} else {
162
163
$ this ->assertFalse (method_exists ($ this ->gateway , 'createCard ' ));
163
164
}
@@ -169,7 +170,7 @@ public function testSupportsDeleteCard()
169
170
$ this ->assertInternalType ('boolean ' , $ supportsDelete );
170
171
171
172
if ($ supportsDelete ) {
172
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->deleteCard ());
173
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->deleteCard ());
173
174
} else {
174
175
$ this ->assertFalse (method_exists ($ this ->gateway , 'deleteCard ' ));
175
176
}
@@ -181,7 +182,7 @@ public function testSupportsUpdateCard()
181
182
$ this ->assertInternalType ('boolean ' , $ supportsUpdate );
182
183
183
184
if ($ supportsUpdate ) {
184
- $ this ->assertInstanceOf (' Omnipay\Common\Message\ RequestInterface' , $ this ->gateway ->updateCard ());
185
+ $ this ->assertInstanceOf (RequestInterface::class , $ this ->gateway ->updateCard ());
185
186
} else {
186
187
$ this ->assertFalse (method_exists ($ this ->gateway , 'updateCard ' ));
187
188
}
0 commit comments