From c9d2e8a6fff4cc79a1ef6a7391561adba9e833e5 Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Sat, 24 Oct 2015 19:19:09 +0200 Subject: [PATCH 1/3] Added prefer lowest to composer update and droped php 5.3 support --- .travis.yml | 24 +++++++++++++++++------- composer.json | 9 +++++---- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index f6114c0..3332e60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,24 @@ language: php php: - - 5.3 - - 5.4 - - 5.5 + - 5.4 + - 5.5 + - 5.6 + +env: + - COMPOSER_OPTIONS='install --prefer-source' + +matrix: + include: + - php: 5.4 + env: COMPOSER_OPTIONS='update --prefer-lowest --prefer-source' + +before_install: + - composer self-update before_script: - - curl -s http://getcomposer.org/installer | php - - php composer.phar update + - COMPOSER_ROOT_VERSION=dev-master composer $COMPOSER_OPTIONS script: - - bin/phpspec r -v - - bin/behat -v + - ./bin/phpspec run --format=dot + - ./bin/behat \ No newline at end of file diff --git a/composer.json b/composer.json index 6fbb622..0b5f132 100644 --- a/composer.json +++ b/composer.json @@ -14,14 +14,15 @@ } ], "require": { - "php": ">=5.3.0", - "phpspec/phpspec": "2.0.*" + "php": ">=5.4.0", + "phpspec/phpspec": "^2" }, "require-dev": { - "behat/behat": "3.0.*@stable", + "behat/behat": "3.0.15", "symfony/filesystem": "~2.3", + "symfony/console": "~2.3.2", "guzzle/http": "~3.0", - "bossa/phpspec2-expect": "dev-master" + "bossa/phpspec2-expect": "^1" }, "autoload": { "psr-0": { "Coduo\\PhpSpec": "src/"} From cef5270270b3251be43ef8a61f11064b050fc8d4 Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Sat, 24 Oct 2015 19:23:22 +0200 Subject: [PATCH 2/3] Changed namespace for Annotation Parser and Before Maintainer --- .../PhpSpec/{ => PrepareExtension}/Annotation/ParserSpec.php | 2 +- .../Runner/Maintainer/BeforeMaintainerSpec.php | 2 +- src/Coduo/PhpSpec/PrepareExtension.php | 2 +- .../PhpSpec/{ => PrepareExtension}/Annotation/Parser.php | 2 +- .../Runner/Maintainer/BeforeMaintainer.php | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) rename spec/Coduo/PhpSpec/{ => PrepareExtension}/Annotation/ParserSpec.php (94%) rename spec/Coduo/PhpSpec/{ => PrepareExtension}/Runner/Maintainer/BeforeMaintainerSpec.php (97%) rename src/Coduo/PhpSpec/{ => PrepareExtension}/Annotation/Parser.php (90%) rename src/Coduo/PhpSpec/{ => PrepareExtension}/Runner/Maintainer/BeforeMaintainer.php (96%) diff --git a/spec/Coduo/PhpSpec/Annotation/ParserSpec.php b/spec/Coduo/PhpSpec/PrepareExtension/Annotation/ParserSpec.php similarity index 94% rename from spec/Coduo/PhpSpec/Annotation/ParserSpec.php rename to spec/Coduo/PhpSpec/PrepareExtension/Annotation/ParserSpec.php index b8dfe86..711613d 100644 --- a/spec/Coduo/PhpSpec/Annotation/ParserSpec.php +++ b/spec/Coduo/PhpSpec/PrepareExtension/Annotation/ParserSpec.php @@ -1,6 +1,6 @@ Date: Sat, 24 Oct 2015 19:34:29 +0200 Subject: [PATCH 3/3] Removed legacy FeatureContext --- behat.yml | 1 - features/bootstrap/FeatureContext.php | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 features/bootstrap/FeatureContext.php diff --git a/behat.yml b/behat.yml index 60e6213..5f552eb 100644 --- a/behat.yml +++ b/behat.yml @@ -2,5 +2,4 @@ default: suites: default: contexts: - - FeatureContext - PHPSpecContext \ No newline at end of file diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php deleted file mode 100644 index 29f6e8b..0000000 --- a/features/bootstrap/FeatureContext.php +++ /dev/null @@ -1,19 +0,0 @@ -