Skip to content

Commit

Permalink
Replace expectNotToPerformAssertions with assert(true) since assertio…
Browse files Browse the repository at this point in the history
…n is needed for test coverage sebastianbergmann/phpunit#3016
  • Loading branch information
janlanger committed Nov 7, 2019
1 parent 9b9d58d commit 5d82406
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions build/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ parameters:
- '#expects DateTimeImmutable, DateTimeImmutable\|false given#'
- '#should return DateTimeImmutable but returns DateTimeImmutable\|false#'
- '#Cannot call method .+ on DateTimeImmutable\|false.#'
- '#Call to static method PHPUnit\\Framework\\Assert::assertTrue\(\) with true will always evaluate to true\.#'
36 changes: 18 additions & 18 deletions tests/unit/RequestFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,70 +44,70 @@ public function testCreateInitPayment(): void
1
);

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateProcessPayment(): void
{
$this->requestFactory->createProcessPayment('123456789');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreatePaymentStatus(): void
{
$this->requestFactory->createPaymentStatus('123456789');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateReversePayment(): void
{
$this->requestFactory->createReversePayment('123456789');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateClosePayment(): void
{
$this->requestFactory->createClosePayment('123456789');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateRefundPayment(): void
{
$this->requestFactory->createRefundPayment('123456789');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateEchoRequest(): void
{
$this->requestFactory->createEchoRequest();

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreatePostEchoRequest(): void
{
$this->requestFactory->createPostEchoRequest();

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateCustomerInfo(): void
{
$this->requestFactory->createCustomerInfo('cust123@mail.com');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateReceivePayment(): void
{
$this->requestFactory->createReceivePaymentRequest();

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateOneclickInitPayment(): void
Expand All @@ -119,21 +119,21 @@ public function testCreateOneclickInitPayment(): void
'Nákup na vasobchod.cz (Lenovo ThinkPad Edge E540, Doprava PPL)'
);

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateOneclickStartPayment(): void
{
$this->requestFactory->createOneclickStartPayment('ef08b6e9f22345c');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateMasterpassBasicCheckoutRequest(): void
{
$this->requestFactory->createMasterpassBasicCheckoutRequest('ef08b6e9f22345c', 'https://www.example.com/callback');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateMasterpassBasicFinishRequest(): void
Expand All @@ -146,14 +146,14 @@ public function testCreateMasterpassBasicFinishRequest(): void
];
$this->requestFactory->createMasterpassBasicFinishRequest('ef08b6e9f22345c', $callbackParams);

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateMasterpassStandardCheckoutRequest(): void
{
$this->requestFactory->createMasterpassStandardCheckoutRequest('ef08b6e9f22345c', 'https://www.example.com/callback', 'SP123');

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateMasterpassStandardExtractRequest(): void
Expand All @@ -166,21 +166,21 @@ public function testCreateMasterpassStandardExtractRequest(): void
];
$this->requestFactory->createMasterpassStandardExtractRequest('ef08b6e9f22345c', $callbackParams);

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreateMasterpassStandardFinishRequest(): void
{
$this->requestFactory->createMasterpassStandardFinishRequest('ef08b6e9f22345c', '123456789', 15000);

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

public function testCreatePaymentButtonRequest(): void
{
$this->requestFactory->createPaymentButtonRequest('ef08b6e9f22345c', PaymentButtonBrand::get(PaymentButtonBrand::ERA));

$this->expectNotToPerformAssertions();
self::assertTrue(true);
}

}

0 comments on commit 5d82406

Please sign in to comment.