Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit c8e3397

Browse files
authored
Merge pull request #115 from webimpress/feature/dependencies
Updated dependencies - PHPUnit 5.7 and 6.0, dropped PHP5.5 support, QA Tools
2 parents bad5d95 + 657731b commit c8e3397

File tree

217 files changed

+5042
-2806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+5042
-2806
lines changed

.docheader

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* @see https://github.com/zendframework/zend-http for the canonical source repository
3+
* @copyright Copyright (c) %regexp:(20\d{2}-)?20\d{2}% Zend Technologies USA Inc. (http://www.zend.com)
4+
* @license https://github.com/zendframework/zend-http/blob/master/LICENSE.md New BSD License
5+
*/

.gitattributes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
/doc export-ignore
12
/test export-ignore
2-
/vendor export-ignore
3-
.coveralls.yml export-ignore
43
.gitattributes export-ignore
54
.gitignore export-ignore
65
.travis.yml export-ignore
7-
.php_cs export-ignore
6+
mkdocs.yml export-ignore
7+
phpcs.xml export-ignore
88
phpunit.xml.dist export-ignore

.gitignore

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
.buildpath
2-
.DS_Store
3-
.idea
4-
.project
5-
.settings/
6-
.*.sw*
7-
.*.un~
8-
nbproject
91
doc/html/
10-
tmp/
2+
vendor/
3+
phpunit.xml
114
zf-mkdoc-theme/
12-
135
clover.xml
14-
composer.lock
156
coveralls-upload.json
16-
phpunit.xml
17-
vendor
7+
zf-mkdoc-theme.tgz

.travis.yml

Lines changed: 55 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,53 +10,91 @@ branches:
1010
cache:
1111
directories:
1212
- $HOME/.composer/cache
13-
- vendor
1413
- $HOME/.local
14+
- vendor
1515
- zf-mkdoc-theme
1616

1717
env:
1818
global:
19+
- COMPOSER_ARGS="--no-interaction"
20+
- COVERAGE_DEPS="satooshi/php-coveralls"
21+
- LEGACY_DEPS="phpunit/phpunit"
1922
- TESTS_ZEND_HTTP_CLIENT_ONLINE=true
20-
- SITE_URL: https://zendframework.github.io/zend-http
21-
- GH_USER_NAME: "Matthew Weier O'Phinney"
22-
- GH_USER_EMAIL: [email protected]
23-
- GH_REF: github.com/zendframework/zend-http.git
23+
- SITE_URL=https://zendframework.github.io/zend-http
24+
- GH_USER_NAME="Matthew Weier O'Phinney"
25+
- GH_USER_EMAIL=[email protected]
26+
- GH_REF=github.com/zendframework/zend-http.git
2427
- secure: "dla3bBhLgsNCSTFaQJF41P56GoNTDOlZA4OGdu14xsTdtcbncPtZ33oojsxXH5XtdB7bYTpMTx7IC+2FEIrWvfbtaFSdOBoriZz+DuvZKCaD/M56H3q3gAumuXvLBH/R+14uFLNRViztP/6uUUVvwRGSnYub2byaX5xTWRelzQjU15p6l8DA7N7RB9hWeZq+41RhpH3DBZOFHpsy+ezy/GWu005CVdSkBG4p5wHW9hs7LBFqn+kN0Qa1zjX3G+p/Gn28+ro1FF5T8TK/hbI/0hDnVJUjSOUXi5VcsOFcnJ50XZBa42PYI6/P6zSI7uuqQzlsefGXslsnYcsmagmACACrnH0nHJB29jlIGzRLOSGpFzOLDjDjlSCOHwZjeLF6tGeEtBQMp+VNnM3GQb5YEaXEmvvt+m+LEvm8mD2w4A47yydYP6AoLBlGpEEORfqUAhSLOJLoXuGAb90wEe4mIRIJegqQQihWppIMWIVXS2kdGSwzA/WnAuyAKywUiXgCcxsW6Aa8DZl1vTgeBA2MkwsBB3IhAweRVaJHnv4ijVWTN0BrAd0naPB+8XzcXgbtpsoRl+Z5RFAFCJQ+nJucdFMkKyr1DotfspyhnbRw4gOZufjCzTQaox8/DbPS0dmb1Zbzb1t80uqPQmMwdtek4Ovm7IVX2iRW3pluS9PWg5Q="
2528

2629
matrix:
2730
include:
28-
- php: 5.5
31+
- php: 5.6
2932
env:
30-
- CS_CHECK=true
33+
- DEPS=lowest
3134
- php: 5.6
3235
env:
36+
- DEPS=locked
3337
- TEST_COVERAGE=true
3438
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
3539
- PATH="$HOME/.local/bin:$PATH"
40+
- php: 5.6
41+
env:
42+
- DEPS=latest
43+
- php: 7
44+
env:
45+
- DEPS=lowest
3646
- php: 7
37-
- php: hhvm
47+
env:
48+
- DEPS=locked
49+
- CS_CHECK=true
50+
- php: 7
51+
env:
52+
- DEPS=latest
53+
- php: 7.1
54+
env:
55+
- DEPS=lowest
56+
- php: 7.1
57+
env:
58+
- DEPS=locked
59+
- php: 7.1
60+
env:
61+
- DEPS=latest
62+
- php: hhvm
63+
env:
64+
- DEPS=lowest
65+
- php: hhvm
66+
env:
67+
- DEPS=locked
68+
- php: hhvm
69+
env:
70+
- DEPS=latest
3871
allow_failures:
3972
- php: hhvm
4073

41-
notifications:
42-
irc: "irc.freenode.org#zftalk.dev"
43-
email: false
44-
4574
before_install:
4675
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
47-
- composer self-update
48-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
76+
- travis_retry composer self-update
4977

5078
install:
51-
- travis_retry composer install --no-interaction --ignore-platform-reqs
79+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
80+
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
81+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
82+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
83+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
84+
- composer show
5285

5386
script:
5487
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
5588
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
89+
- if [[ $CS_CHECK == 'true' ]]; then composer license-check ; fi
5690
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi
5791

92+
after_script:
93+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
94+
5895
after_success:
5996
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
6097

61-
after_script:
62-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
98+
notifications:
99+
irc: "irc.freenode.org#zftalk.dev"
100+
email: false

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ All notable changes to this project will be documented in this file, in reverse
1616

1717
### Removed
1818

19-
- Nothing.
19+
- [#115](https://github.com/zendframework/zend-http/pull/115) dropped php 5.5
20+
support
2021

2122
### Fixed
2223

CONTRIBUTING.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,39 +36,30 @@ For sensitive email communications, please use [our PGP key](http://framework.ze
3636

3737
## RUNNING TESTS
3838

39-
> ### Note: testing versions prior to 2.4
40-
>
41-
> This component originates with Zend Framework 2. During the lifetime of ZF2,
42-
> testing infrastructure migrated from PHPUnit 3 to PHPUnit 4. In most cases, no
43-
> changes were necessary. However, due to the migration, tests may not run on
44-
> versions < 2.4. As such, you may need to change the PHPUnit dependency if
45-
> attempting a fix on such a version.
46-
4739
To run tests:
4840

4941
- Clone the repository:
5042

5143
```console
52-
$ git clone git@github.com:zendframework/zend-http.git
53-
$ cd
44+
$ git clone git://github.com/zendframework/zend-http.git
45+
$ cd zend-http
5446
```
5547

5648
- Install dependencies via composer:
5749

5850
```console
59-
$ curl -sS https://getcomposer.org/installer | php --
60-
$ ./composer.phar install
51+
$ composer install
6152
```
6253

63-
If you don't have `curl` installed, you can also download `composer.phar` from https://getcomposer.org/
54+
If you don't have `composer` installed, please download it from https://getcomposer.org/download/
6455

65-
- Run the tests via `phpunit` and the provided PHPUnit config, like in this example:
56+
- Run the tests using the "test" command shipped in the `composer.json`:
6657

6758
```console
68-
$ ./vendor/bin/phpunit
59+
$ composer test
6960
```
7061

71-
You can turn on conditional tests with the phpunit.xml file.
62+
You can turn on conditional tests with the `phpunit.xml` file.
7263
To do so:
7364

7465
- Copy `phpunit.xml.dist` file to `phpunit.xml`
@@ -77,38 +68,48 @@ To do so:
7768

7869
## Running Coding Standards Checks
7970

80-
This component uses [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) for coding
81-
standards checks, and provides configuration for our selected checks.
82-
`phpcs` is installed by default via Composer.
71+
First, ensure you've installed dependencies via composer, per the previous
72+
section on running tests.
8373

84-
To run checks only:
74+
To run CS checks only:
8575

8676
```console
8777
$ composer cs-check
8878
```
8979

90-
`phpcs` also includes a tool for fixing most CS violations, `phpcbf`:
91-
80+
To attempt to automatically fix common CS issues:
9281

9382
```console
9483
$ composer cs-fix
9584
```
9685

97-
If you allow `phpcbf` to fix CS issues, please re-run the tests to ensure
86+
If the above fixes any CS issues, please re-run the tests to ensure
9887
they pass, and make sure you add and commit the changes after verification.
9988

89+
## Running License Checks
90+
91+
File-level docblocks should follow the format demonstrated in `.docheader`. To
92+
check for conformity, use:
93+
94+
```console
95+
$ composer license-check
96+
```
97+
98+
This will flag files that are incorrect, which you can then update. Re-run the
99+
tool to verify your changes.
100+
100101
## Recommended Workflow for Contributions
101102

102103
Your first step is to establish a public repository from which we can
103104
pull your work into the master repository. We recommend using
104105
[GitHub](https://github.com), as that is where the component is already hosted.
105106

106-
1. Setup a [GitHub account](http://github.com/), if you haven't yet
107-
2. Fork the repository (http://github.com/zendframework/zend-http)
107+
1. Setup a [GitHub account](https://github.com/), if you haven't yet
108+
2. Fork the repository (https://github.com/zendframework/zend-http)
108109
3. Clone the canonical repository locally and enter it.
109110

110111
```console
111-
$ git clone git://github.com:zendframework/zend-http.git
112+
$ git clone git://github.com/zendframework/zend-http.git
112113
$ cd zend-http
113114
```
114115

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
[![Coverage Status](https://coveralls.io/repos/zendframework/zend-http/badge.svg?branch=master)](https://coveralls.io/r/zendframework/zend-http?branch=master)
55

66
zend-http provides the HTTP message abstraction used by
7-
[zend-mvc](https://zendframework.github.io/zend-mvc/), and also provides an
7+
[zend-mvc](https://docs.zendframework.com/zend-mvc/), and also provides an
88
extensible, adapter-driven HTTP client library.
99

1010
This library **does not** support [PSR-7](http://www.php-fig.org/psr/psr-7), as
1111
it predates that specification. For PSR-7 support, please see our
12-
[Diactoros component](https://zendframework.github.io/zend-diactoros/).
12+
[Diactoros component](https://docs.zendframework.com/zend-diactoros/).
1313

1414
- File issues at https://github.com/zendframework/zend-http/issues
1515
- Documentation is at https://zendframework.github.io/zend-http/

composer.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
}
1515
},
1616
"require": {
17-
"php": "^5.5 || ^7.0",
18-
"zendframework/zend-loader": "^2.5",
19-
"zendframework/zend-stdlib": "^2.5 || ^3.0",
20-
"zendframework/zend-uri": "^2.5",
21-
"zendframework/zend-validator": "^2.5"
17+
"php": "^5.6 || ^7.0",
18+
"zendframework/zend-loader": "^2.5.1",
19+
"zendframework/zend-stdlib": "^3.1 || ^2.7.7",
20+
"zendframework/zend-uri": "^2.5.2",
21+
"zendframework/zend-validator": "^2.8.2"
2222
},
2323
"require-dev": {
24-
"phpunit/PHPUnit": "^4.0",
25-
"zendframework/zend-config": "^2.5",
26-
"zendframework/zend-coding-standard": "~1.0.0"
24+
"malukenho/docheader": "^0.1.5",
25+
"phpunit/phpunit": "^6.0.8 || ^5.7.15",
26+
"zendframework/zend-coding-standard": "~1.0.0",
27+
"zendframework/zend-config": "^3.1 || ^2.6"
2728
},
2829
"autoload": {
2930
"psr-4": {
@@ -37,13 +38,15 @@
3738
},
3839
"scripts": {
3940
"check": [
41+
"@license-check",
4042
"@cs-check",
4143
"@test"
4244
],
4345
"cs-check": "phpcs",
4446
"cs-fix": "phpcbf",
4547
"test": "phpunit --colors=always",
4648
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
49+
"license-check": "vendor/bin/docheader check src/",
4750
"upload-coverage": "coveralls -v"
4851
}
4952
}

0 commit comments

Comments
 (0)