Skip to content

Commit 15a3d9b

Browse files
author
rkesarwa
committed
Update composer.json to use phpunit v9.5
1 parent afe08c7 commit 15a3d9b

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you want to install SDK from Packagist,add the following dependency to your a
1313
```
1414
## Prerequisites
1515

16-
- PHP 5.3 or above
16+
- PHP 7.3 or above
1717
- [curl](http://php.net/manual/en/book.curl.php), [openssl](http://php.net/manual/en/book.openssl.php), [soap](http://php.net/manual/en/book.soap.php) extensions must be enabled
1818
- A CyberSource account. You can create an evaluation account [here](http://www.cybersource.com/register/).
1919
- A CyberSource transaction key. You will need to set your merchant ID and transaction key in the ````cybs.ini```` file in ````lib/conf````. Instructions on obtaining a transaction key can be found [here](http://www.cybersource.com/developers/integration_methods/simple_order_and_soap_toolkit_api/soap_api/html/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Intro.04.3.html).
@@ -30,6 +30,12 @@ You'll first need to make sure you have Composer installed. You can follow the i
3030
Linux: composer.phar install
3131
Windows: composer install
3232
```
33+
If you already have composer installed for the project, you'll need to run the update command as below
34+
```
35+
Linux: composer.phar update
36+
Windows: composer update
37+
```
38+
3339
Then, to use the client, you'll need to include the Composer-generated autoload file:
3440

3541
```php

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=5.3",
18+
"php": ">=7.3",
1919
"ext-curl": "*",
2020
"ext-openssl": "*",
2121
"ext-soap": "*"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "3.7.*"
24+
"phpunit/phpunit": "9.5.*"
2525
},
2626
"autoload": {
2727
"classmap": ["lib/"]

test/CybsSoapClientTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
2+
require __DIR__ . '/../vendor/autoload.php';
3+
use PHPUnit\Framework\TestCase;
24

3-
class CybsSoapClientTestCase extends PHPUnit_Framework_TestCase
5+
class CybsSoapClientTestCase extends TestCase
46
{
57
public function testClient()
68
{

0 commit comments

Comments
 (0)