Skip to content

Commit

Permalink
update base test assertions to comply with sebastianbergmann/phpunit#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NicTorgersen committed May 31, 2021
1 parent 421da60 commit f3ea2ea
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/GatewayTestCase.php
Expand Up @@ -19,20 +19,20 @@ public function testGetNameNotEmpty()
{
$name = $this->gateway->getName();
$this->assertNotEmpty($name);
$this->assertInternalType('string', $name);
$this->assertIsString($name);
}

public function testGetShortNameNotEmpty()
{
$shortName = $this->gateway->getShortName();
$this->assertNotEmpty($shortName);
$this->assertInternalType('string', $shortName);
$this->assertIsString($shortName);
}

public function testGetDefaultParametersReturnsArray()
{
$settings = $this->gateway->getDefaultParameters();
$this->assertInternalType('array', $settings);
$this->assertIsArray($settings);
}

public function testDefaultParametersHaveMatchingMethods()
Expand Down Expand Up @@ -71,7 +71,7 @@ public function testCurrency()
public function testSupportsAuthorize()
{
$supportsAuthorize = $this->gateway->supportsAuthorize();
$this->assertInternalType('boolean', $supportsAuthorize);
$this->assertIsBool($supportsAuthorize);

if ($supportsAuthorize) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->authorize());
Expand All @@ -83,7 +83,7 @@ public function testSupportsAuthorize()
public function testSupportsCompleteAuthorize()
{
$supportsCompleteAuthorize = $this->gateway->supportsCompleteAuthorize();
$this->assertInternalType('boolean', $supportsCompleteAuthorize);
$this->assertIsBool($supportsCompleteAuthorize);

if ($supportsCompleteAuthorize) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->completeAuthorize());
Expand All @@ -95,7 +95,7 @@ public function testSupportsCompleteAuthorize()
public function testSupportsCapture()
{
$supportsCapture = $this->gateway->supportsCapture();
$this->assertInternalType('boolean', $supportsCapture);
$this->assertIsBool($supportsCapture);

if ($supportsCapture) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->capture());
Expand All @@ -107,7 +107,7 @@ public function testSupportsCapture()
public function testSupportsPurchase()
{
$supportsPurchase = $this->gateway->supportsPurchase();
$this->assertInternalType('boolean', $supportsPurchase);
$this->assertIsBool($supportsPurchase);

if ($supportsPurchase) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->purchase());
Expand All @@ -119,7 +119,7 @@ public function testSupportsPurchase()
public function testSupportsCompletePurchase()
{
$supportsCompletePurchase = $this->gateway->supportsCompletePurchase();
$this->assertInternalType('boolean', $supportsCompletePurchase);
$this->assertIsBool($supportsCompletePurchase);

if ($supportsCompletePurchase) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->completePurchase());
Expand All @@ -131,7 +131,7 @@ public function testSupportsCompletePurchase()
public function testSupportsRefund()
{
$supportsRefund = $this->gateway->supportsRefund();
$this->assertInternalType('boolean', $supportsRefund);
$this->assertIsBool($supportsRefund);

if ($supportsRefund) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->refund());
Expand All @@ -143,7 +143,7 @@ public function testSupportsRefund()
public function testSupportsVoid()
{
$supportsVoid = $this->gateway->supportsVoid();
$this->assertInternalType('boolean', $supportsVoid);
$this->assertIsBool($supportsVoid);

if ($supportsVoid) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->void());
Expand All @@ -155,7 +155,7 @@ public function testSupportsVoid()
public function testSupportsCreateCard()
{
$supportsCreate = $this->gateway->supportsCreateCard();
$this->assertInternalType('boolean', $supportsCreate);
$this->assertIsBool($supportsCreate);

if ($supportsCreate) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->createCard());
Expand All @@ -167,7 +167,7 @@ public function testSupportsCreateCard()
public function testSupportsDeleteCard()
{
$supportsDelete = $this->gateway->supportsDeleteCard();
$this->assertInternalType('boolean', $supportsDelete);
$this->assertIsBool($supportsDelete);

if ($supportsDelete) {
$this->assertInstanceOf(RequestInterface::class, $this->gateway->deleteCard());
Expand All @@ -179,7 +179,7 @@ public function testSupportsDeleteCard()
public function testSupportsUpdateCard()
{
$supportsUpdate = $this->gateway->supportsUpdateCard();
$this->assertInternalType('boolean', $supportsUpdate);
$this->assertIsBool($supportsUpdate);

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

0 comments on commit f3ea2ea

Please sign in to comment.