diff --git a/.travis.yml b/.travis.yml index 43041d0..e88e4fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,23 +6,31 @@ php: - 5.5 - 5.6 - 7.0 + - 7.1 - nightly cache: directories: - vendor -matrix: - allow_failures: - - php: nightly +sudo: false env: matrix: - COMPOSER_PREFER="--prefer-stable" - COMPOSER_PREFER="--prefer-lowest" -sudo: false +matrix: + allow_failures: + - php: nightly + exclude: + - php: 7.0 + env: COMPOSER_PREFER="--prefer-lowest" + - php: 7.1 + env: COMPOSER_PREFER="--prefer-lowest" + - php: nightly + env: COMPOSER_PREFER="--prefer-lowest" script: - composer update $COMPOSER_PREFER - - ./vendor/bin/atoum --test-ext -p 'php -n -ddate.timezone=UTC' + - vendor/bin/atoum --test-ext diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bb02c4..34a3541 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.3.0 - 2017-02-24 + +* [#16](https://github.com/atoum/autoloop-extension/pull/16) Support atoum 3.x ([@jubianchi]) + # 0.2.0 - 2017-02-16 * [#10](https://github.com/atoum/autoloop-extension/pull/10) The extension now self-registers on atoum (needs atoum >=2.9) ([@agallou]) @@ -21,3 +25,4 @@ [@vonglasow]: https://github.com/vonglasow [@agallou]: https://github.com/agallou +[@jubianchi]: https://github.com/jubianchi diff --git a/composer.json b/composer.json index 1609531..ad11b4b 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ }, "minimum-stability": "beta", "require": { - "atoum/atoum": "^2.9.0", + "atoum/atoum": "^2.9 | ^3.0", "henrikbjorn/lurker": "^1.1" } } diff --git a/configuration.php b/configuration.php index 58af14a..7f7e43b 100644 --- a/configuration.php +++ b/configuration.php @@ -1,7 +1,12 @@ =') === true) { - \mageekguy\atoum\scripts\runner::addConfigurationCallable(function($script, $runner) { - $runner->addExtension(new \mageekguy\atoum\autoloop\extension($script)); +use mageekguy\atoum; +use mageekguy\atoum\scripts; + +if (defined('mageekguy\atoum\scripts\runner') === true) { + scripts\runner::addConfigurationCallable(function(atoum\configurator $script, atoum\runner $runner) { + $extension = new atoum\autoloop\extension($script); + + $extension->addToRunner($runner); }); }