Skip to content

Commit 5c8eb14

Browse files
committed
Fix assertInternalType
1 parent b6a4cf7 commit 5c8eb14

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/GatewayTestCase.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ public function testGetNameNotEmpty()
1919
{
2020
$name = $this->gateway->getName();
2121
$this->assertNotEmpty($name);
22-
$this->assertInternalType('string', $name);
22+
$this->assertIsString($name);
2323
}
2424

2525
public function testGetShortNameNotEmpty()
2626
{
2727
$shortName = $this->gateway->getShortName();
2828
$this->assertNotEmpty($shortName);
29-
$this->assertInternalType('string', $shortName);
29+
$this->assertIsString($shortName);
3030
}
3131

3232
public function testGetDefaultParametersReturnsArray()
3333
{
3434
$settings = $this->gateway->getDefaultParameters();
35-
$this->assertInternalType('array', $settings);
35+
$this->assertIsString($settings);
3636
}
3737

3838
public function testDefaultParametersHaveMatchingMethods()
@@ -71,7 +71,7 @@ public function testCurrency()
7171
public function testSupportsAuthorize()
7272
{
7373
$supportsAuthorize = $this->gateway->supportsAuthorize();
74-
$this->assertInternalType('boolean', $supportsAuthorize);
74+
$this->assertIsBool($supportsAuthorize);
7575

7676
if ($supportsAuthorize) {
7777
$this->assertInstanceOf(RequestInterface::class, $this->gateway->authorize());
@@ -83,7 +83,7 @@ public function testSupportsAuthorize()
8383
public function testSupportsCompleteAuthorize()
8484
{
8585
$supportsCompleteAuthorize = $this->gateway->supportsCompleteAuthorize();
86-
$this->assertInternalType('boolean', $supportsCompleteAuthorize);
86+
$this->assertIsBool($supportsCompleteAuthorize);
8787

8888
if ($supportsCompleteAuthorize) {
8989
$this->assertInstanceOf(RequestInterface::class, $this->gateway->completeAuthorize());
@@ -95,7 +95,7 @@ public function testSupportsCompleteAuthorize()
9595
public function testSupportsCapture()
9696
{
9797
$supportsCapture = $this->gateway->supportsCapture();
98-
$this->assertInternalType('boolean', $supportsCapture);
98+
$this->assertIsBool($supportsCapture);
9999

100100
if ($supportsCapture) {
101101
$this->assertInstanceOf(RequestInterface::class, $this->gateway->capture());
@@ -107,7 +107,7 @@ public function testSupportsCapture()
107107
public function testSupportsPurchase()
108108
{
109109
$supportsPurchase = $this->gateway->supportsPurchase();
110-
$this->assertInternalType('boolean', $supportsPurchase);
110+
$this->assertIsBool($supportsPurchase);
111111

112112
if ($supportsPurchase) {
113113
$this->assertInstanceOf(RequestInterface::class, $this->gateway->purchase());
@@ -119,7 +119,7 @@ public function testSupportsPurchase()
119119
public function testSupportsCompletePurchase()
120120
{
121121
$supportsCompletePurchase = $this->gateway->supportsCompletePurchase();
122-
$this->assertInternalType('boolean', $supportsCompletePurchase);
122+
$this->assertIsBool($supportsCompletePurchase);
123123

124124
if ($supportsCompletePurchase) {
125125
$this->assertInstanceOf(RequestInterface::class, $this->gateway->completePurchase());
@@ -131,7 +131,7 @@ public function testSupportsCompletePurchase()
131131
public function testSupportsRefund()
132132
{
133133
$supportsRefund = $this->gateway->supportsRefund();
134-
$this->assertInternalType('boolean', $supportsRefund);
134+
$this->assertIsBool($supportsRefund);
135135

136136
if ($supportsRefund) {
137137
$this->assertInstanceOf(RequestInterface::class, $this->gateway->refund());
@@ -143,7 +143,7 @@ public function testSupportsRefund()
143143
public function testSupportsVoid()
144144
{
145145
$supportsVoid = $this->gateway->supportsVoid();
146-
$this->assertInternalType('boolean', $supportsVoid);
146+
$this->assertIsBool($supportsVoid);
147147

148148
if ($supportsVoid) {
149149
$this->assertInstanceOf(RequestInterface::class, $this->gateway->void());
@@ -155,7 +155,7 @@ public function testSupportsVoid()
155155
public function testSupportsCreateCard()
156156
{
157157
$supportsCreate = $this->gateway->supportsCreateCard();
158-
$this->assertInternalType('boolean', $supportsCreate);
158+
$this->assertIsBool($supportsCreate);
159159

160160
if ($supportsCreate) {
161161
$this->assertInstanceOf(RequestInterface::class, $this->gateway->createCard());
@@ -167,7 +167,7 @@ public function testSupportsCreateCard()
167167
public function testSupportsDeleteCard()
168168
{
169169
$supportsDelete = $this->gateway->supportsDeleteCard();
170-
$this->assertInternalType('boolean', $supportsDelete);
170+
$this->assertIsBool($supportsDelete);
171171

172172
if ($supportsDelete) {
173173
$this->assertInstanceOf(RequestInterface::class, $this->gateway->deleteCard());
@@ -179,7 +179,7 @@ public function testSupportsDeleteCard()
179179
public function testSupportsUpdateCard()
180180
{
181181
$supportsUpdate = $this->gateway->supportsUpdateCard();
182-
$this->assertInternalType('boolean', $supportsUpdate);
182+
$this->assertIsBool($supportsUpdate);
183183

184184
if ($supportsUpdate) {
185185
$this->assertInstanceOf(RequestInterface::class, $this->gateway->updateCard());

0 commit comments

Comments
 (0)