Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
dist: trusty
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

before_script: composer install --dev
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
cd tests && php all_tests.php && cd ..
```

The [Travis CI build](https://travis-ci.org/campaignmonitor/createsend-php) runs on PHP `5.3` and `5.4`.
The [Travis CI build](https://travis-ci.org/campaignmonitor/createsend-php) runs on PHP `5.4`, `5.5`, `5.6`, `7.0`, `7.1` and `hhvm`.

5. It should go without saying, but do not increment the version number in your commits.
6. [Submit a pull request](https://help.github.com/articles/using-pull-requests).
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=5.4.0"
},
"require-dev": {
"simpletest/simpletest": "~1.1.3"
"simpletest/simpletest": "~1.1.7"
},
"autoload": {
"classmap": [
Expand Down
81 changes: 59 additions & 22 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/all_tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
require_once __DIR__.'/../vendor/simpletest/simpletest/mock_objects.php';

class AllTests extends TestSuite {
function AllTests() {
$this->TestSuite('All Tests');
function __construct() {
parent::__construct('All Tests');
$this->addFile('class_tests/transport_test.php');
$this->addFile('class_tests/response_tests.php');
$this->addFile('csrest_test.php');
Expand Down
1 change: 1 addition & 0 deletions tests/csrest_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__.'/../vendor/simpletest/simpletest/autorun.php';
require_once(__DIR__.'/../vendor/simpletest/simpletest/mock_objects.php');

@Mock::generate('CS_REST_Log');
@Mock::generate('CS_REST_NativeJsonSerialiser');
Expand Down