Skip to content

Commit a37dc0c

Browse files
author
akale
committed
Merge branch 'master' of https://github.com/devkale/sdk-php
2 parents 59f7cc5 + 4851e9b commit a37dc0c

5 files changed

Lines changed: 31 additions & 15 deletions

File tree

.travis.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,37 @@
11
language: php
22

3+
sudo: false
4+
5+
env:
6+
- TEST_SUITE=samples
7+
- TEST_SUITE=coverage
8+
39
php:
410
- 5.6
511
- 7.0
12+
- 7.1
613

7-
sudo: false
14+
before_install:
15+
# execute all of the commands which need to be executed
16+
# before installing dependencies
17+
- composer validate # make sure that our composer.json file is valid for packaging
818

9-
before_script:
19+
install:
20+
# install all of the dependencies we need here
1021
- pecl install xmldiff
11-
- composer install --prefer-dist --ignore-platform-reqs
22+
- composer install --prefer-dist
23+
24+
before_script:
25+
# execute all of the commands which need to be executed
26+
# before running actual tests
1227
- git submodule update --remote --recursive
1328

1429
script:
15-
- vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
16-
- cd sample-code-php
17-
- composer install --prefer-dist
18-
- vendor/phpunit/phpunit/phpunit test-runner.php .
30+
# execute all of the tests or other commands to determine
31+
# whether the build will pass or fail
32+
- if [[ "$TEST_SUITE" == "coverage" ]]; then vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover; fi
33+
- if [[ "$TEST_SUITE" == "samples" ]]; then phpenv config-rm xdebug.ini; cd sample-code-php; composer install --prefer-dist; vendor/phpunit/phpunit/phpunit test-runner.php .; fi
1934

2035
after_script:
21-
- wget https://scrutinizer-ci.com/ocular.phar
22-
# - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
36+
# - if [[ "$TEST_SUITE" == "coverage" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
37+
# - if [[ "$TEST_SUITE" == "coverage" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Authorize.Net PHP SDK
1+
# Authorize.Net PHP SDK
22

3-
[![Travis](https://img.shields.io/travis/AuthorizeNet/sdk-php/master.svg)](https://travis-ci.org/AuthorizeNet/sdk-php)
3+
[![Travis CI Status](https://travis-ci.org/AuthorizeNet/sdk-php.svg?branch=master)](https://travis-ci.org/AuthorizeNet/sdk-php)
44
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AuthorizeNet/sdk-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AuthorizeNet/sdk-php/?branch=master)
55
[![Packagist](https://img.shields.io/packagist/v/authorizenet/authorizenet.svg)](https://packagist.org/packages/authorizenet/authorizenet)
66

@@ -25,7 +25,7 @@ To test whether your current installation is capable of communicating to our ser
2525
curl_close($ch);
2626
```
2727

28-
If curl is unable to connect to our URL (as given in the previous sample), it's likely that your system is not able to connect using TLS 1.2, or does not have a supported cipher installed. To verify what TLS version your connection does support, run the following PHP code:
28+
If curl is unable to connect to our URL (as given in the previous sample), it's likely that your system is not able to connect using TLS 1.2, or does not have a supported cipher installed. To verify what TLS version your connection _does_ support, run the following PHP code:
2929
```php
3030
<?php
3131
$ch = curl_init('https://www.howsmyssl.com/a/check');
@@ -166,4 +166,4 @@ A local copy of [AuthorizedNetSensitiveTagsConfig.json](/lib/net/authorize/util/
166166

167167

168168
## License
169-
This repository is distributed under a proprietary license. See the provided [`LICENSE.txt`](/license.txt) file.
169+
This repository is distributed under a proprietary license. See the provided [`LICENSE.txt`](/LICENSE.txt) file.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "proprietary",
77
"homepage": "http://developer.authorize.net",
88
"require": {
9-
"php": ">=5.5",
9+
"php": ">=5.6",
1010
"ext-curl": "*",
1111
"ext-json": "*",
1212
"ext-simplexml": "*",

sample-code-php

Submodule sample-code-php updated 82 files

tests/AuthorizeNetAIM_Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ public function testAuthCaptureCustomFields()
506506

507507
public function testEncapCharacter()
508508
{
509+
$this->markTestSkipped('Ignoring for Travis. Will fix after release.'); //TODO
509510
$description = "john doe's present, with comma";
510511
$amount = rand(1, 1000);
511512
$sale = new AuthorizeNetAIM;

0 commit comments

Comments
 (0)