Skip to content

Commit 0e927cc

Browse files
authored
Merge pull request #4 from leanphp/3.0.x-dev
3.0.x-dev (master) + Symonfy 2.x / 3.x compatibility
2 parents 44d53ac + d82b1a0 commit 0e927cc

File tree

11 files changed

+381
-380
lines changed

11 files changed

+381
-380
lines changed

.travis.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: php
2+
23
matrix:
34
include:
45
- php: 5.3
@@ -10,18 +11,9 @@ matrix:
1011
- php: 7.0
1112
- php: 7.1
1213

13-
cache:
14-
directories:
15-
- $HOME/.composer/cache/files
16-
1714
before_script:
18-
- if [[ $deps = low ]]; then composer update --prefer-lowest --prefer-stable; fi
19-
20-
script:
2115
- composer validate
22-
- composer update
23-
- bin/phpunit -vvv
16+
- if [[ $deps = low ]]; then composer update --prefer-lowest --prefer-stable; else composer update; fi
2417

25-
install:
26-
- travis_retry composer install
18+
script: ./bin/phpunit -vvv
2719

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/)
77
and this project adheres to [Semantic Versioning](http://semver.org/).
88

9-
## [2.5.5] - 2017-04-05 (backported v2.5.0.5, original release on 2014-02-10)
9+
## [3.0.x-dev] - UNRELEASED (backported 3.0.x-dev from vipsoft/code-coverage-extension)
10+
11+
- Merged commits from `3.0.x-dev` (`master` branch) of
12+
`vipsoft/code-coverage-extension` (adds support for Behat `~3.0`)
13+
- Fixed compatibility with Symfony `~2.3` and `~3.0` components (tested with
14+
versions `2.3`,`2.4`,`2.5`,`2.6`,`2.7`,`2.8`,`3.0`,`3.1`,`3.2`). As a result
15+
there are 2 different service definitions `services-2.3.xml` for Symfony
16+
`2.x` and `services.xml` for Symfony `3.x`).
17+
- Update TravisCI to test against all supported version of PHP.
18+
- Added `symfony/expression-language` as a dependency for users using older
19+
versions of PHP and symonfy `2.x` / `3.x`.
20+
21+
## [2.5.5] - 2017-04-04 (backported v2.5.0.5, original release on 2014-02-10)
1022

1123
**Note!** This version is a direct backport of `2.5.0.5` of
1224
[vipsoft/code-coverage-extension][1] package with updated namespaces to work
@@ -23,6 +35,7 @@ disappear, this extension would still work.
2335
- Updated `vfsStream` from `1.2.*` to `1.3.*` to fix failing/skipped test
2436
- Updated versions of dependencies and code is tested to run with Behat `2.5`.
2537

38+
[3.0.x-dev]: https://github.com/leanphp/behat-code-coverage/compare/v2.5.5...master
2639
[2.5.5]: https://github.com/leanphp/behat-code-coverage/releases/tag/v2.5.5
2740

2841
[0]: https://github.com/leanphp/behat-code-coverage

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ compatible version numbers for stable releases.
1818

1919
## Requirements
2020

21-
- PHP 5.3.10+
22-
- [Behat v2.4+][3]
23-
- [Mink 1.4+][4]
24-
- [Xdebug][5] extension enabled in PHP
21+
- PHP 5.3.10+ / 7.0+
22+
- [Behat v3][3]
23+
- [Xdebug][5] or [phpdbg][6] extension enabled (PHP 7+ is required for code
24+
generation to work with [phpdbg][6]).
2525

2626
## Change Log
2727

@@ -61,6 +61,15 @@ If you execute `bin/behat` command, you will see code coverage generated in
6161

6262
$ bin/behat
6363

64+
### Running with phpdbg
65+
66+
This extension now supports [phpdbg][6], which results in faster execution when
67+
using more recent versions of PHP. Run `phpspec` via [phpdbg][6]:
68+
69+
$ phpdbg -qrr behat run
70+
71+
**Note!** PHP 7+ is required for code generation to work with [phpdbg][6].
72+
6473
## Configuration
6574

6675
You can see fully annotated `behat.yml` example file below, which can be used
@@ -159,6 +168,7 @@ Licensed under [BSD-2-Clause License](LICENSE).
159168
[3]: http://behat.org/en/v2.5/
160169
[4]: http://mink.behat.org
161170
[5]: https://xdebug.org/
171+
[6]: http://phpdbg.com/
162172

163173
[travis-image]: https://travis-ci.org/leanphp/behat-code-coverage.svg
164174
[travis-url]: https://travis-ci.org/leanphp/behat-code-coverage

composer.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@
2626
},
2727
"require": {
2828
"php": ">=5.3.10",
29-
"phpunit/php-code-coverage": "~2.2",
30-
"behat/behat": "~2.4",
29+
"phpunit/php-code-coverage": "2.2.*",
30+
"behat/behat": "~3.0",
3131
"guzzle/http": "~3.0",
32-
"symfony/config": "~2.2,<2.4",
33-
"symfony/dependency-injection": "~2.2,<2.4",
34-
"symfony/http-kernel": "~2.2,<2.4",
35-
"symfony/http-foundation": "~2.2,<2.4"
32+
"symfony/config": "~2.3||~3.0",
33+
"symfony/dependency-injection": "~2.2||~3.0",
34+
"symfony/expression-language": "~2.2||~3.0",
35+
"symfony/http-kernel": "~2.3||~3.0",
36+
"symfony/http-foundation": "~2.3||~3.0"
3637
},
3738
"require-dev": {
3839
"phpunit/phpunit": "~4.0",
@@ -43,5 +44,10 @@
4344
},
4445
"config": {
4546
"bin-dir": "bin"
47+
},
48+
"extra": {
49+
"branch-alias": {
50+
"dev-master": "3.0.x-dev"
51+
}
4652
}
4753
}

doc/index.rst

Lines changed: 0 additions & 147 deletions
This file was deleted.

0 commit comments

Comments
 (0)