Skip to content

Commit

Permalink
update phpunit version, support php 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
i.badamshin committed Jul 27, 2023
1 parent 5596057 commit a50dd22
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ composer.phar
.idea/

# Merchant settings for integration tests
/tests/integration/MerchantSettings.php
/tests/integration/MerchantSettings.php
.phpunit.result.cache
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
"name": "payprocessing/atol-sdk-api-v4",
"description": "Atol.online SDK Version 4",
"require": {
"php": ">=5.5",
"php": ">=7.2",
"psr/log": "^1.0.2",
"myclabs/php-enum": "^1.6",
"ext-curl": "^7.2",
"ext-curl": "*",
"ext-json": "*"
},
"require-dev": {
"php": ">=5.6",
"phpunit/phpunit": "5.7"
"phpunit/phpunit": "^8.0.0||^9.0.0||^10.0.0"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 4 additions & 2 deletions tests/integration/IntegrationTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace Platron\AtolV4\tests\integration;

class IntegrationTestBase extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class IntegrationTestBase extends TestCase
{
/** @var string */
protected $login;
Expand All @@ -15,7 +17,7 @@ class IntegrationTestBase extends \PHPUnit_Framework_TestCase
/** @var string */
protected $paymentAddress;

public function __construct()
protected function setUp(): void
{
$this->login = MerchantSettings::LOGIN;
$this->password = MerchantSettings::PASSWORD;
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/data_objects/ReceiptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

namespace Platron\AtolV4\tests\unit\data_objects;

use PHPUnit\Framework\TestCase;
use Platron\AtolV4\data_objects\Client;
use Platron\AtolV4\data_objects\Company;
use Platron\AtolV4\data_objects\Item;
use Platron\AtolV4\data_objects\Payment;
use Platron\AtolV4\data_objects\Receipt;
use Platron\AtolV4\handbooks\ReceiptOperationTypes;

class ReceiptTest extends \PHPUnit_Framework_TestCase
class ReceiptTest extends TestCase
{
public function test_getParameters_withoutAdditionalCheckProps_resultHasNoKey()
{
Expand Down

0 comments on commit a50dd22

Please sign in to comment.