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

Commit 8c57290

Browse files
committed
Merge branch 'feature/19' into develop
Close #19
2 parents 6dbdced + d8ab089 commit 8c57290

26 files changed

+727
-770
lines changed

.gitattributes

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
/test export-ignore
2-
/vendor export-ignore
3-
.coveralls.yml export-ignore
4-
.gitattributes export-ignore
5-
.gitignore export-ignore
6-
.travis.yml export-ignore
7-
.php_cs export-ignore
8-
phpunit.xml.dist export-ignore
1+
/.coveralls.yml export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/.travis.yml export-ignore
5+
/composer.lock export-ignore
6+
/docs/ export-ignore
7+
/mkdocs.yml export-ignore
8+
/phpcs.xml export-ignore
9+
/phpunit.xml.dist export-ignore
10+
/test/ export-ignore

.gitignore

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

.travis.yml

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@ sudo: false
22

33
language: php
44

5-
branches:
6-
except:
7-
- /^release-\d+\.\d+\.\d+.*$/
8-
- /^ghgfk-.*$/
9-
105
cache:
116
directories:
127
- $HOME/.composer/cache
138

149
env:
1510
global:
16-
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
11+
- COMPOSER_ARGS="--no-interaction"
12+
- COVERAGE_DEPS="php-coveralls/php-coveralls"
1713

1814
matrix:
1915
include:
@@ -22,7 +18,7 @@ matrix:
2218
- DEPS=lowest
2319
- php: 5.6
2420
- DEPS=locked
25-
- TEST_COVERAGE=true
21+
- LEGACY_DEPS="phpunit/phpunit"
2622
- php: 5.6
2723
env:
2824
- DEPS=latest
@@ -32,38 +28,48 @@ matrix:
3228
- php: 7
3329
env:
3430
- DEPS=locked
35-
- CHECK_CS=true
31+
- LEGACY_DEPS="phpunit/phpunit"
3632
- php: 7
3733
env:
3834
- DEPS=latest
39-
- php: hhvm
35+
- php: 7.1
4036
env:
4137
- DEPS=lowest
42-
- php: hhvm
38+
- php: 7.1
4339
env:
4440
- DEPS=locked
45-
- php: hhvm
41+
- CS_CHECK=true
42+
- TEST_COVERAGE=true
43+
- php: 7.1
44+
env:
45+
- DEPS=latest
46+
- php: 7.2
47+
env:
48+
- DEPS=lowest
49+
- php: 7.2
50+
env:
51+
- DEPS=locked
52+
- php: 7.2
4653
env:
4754
- DEPS=latest
48-
allow_failures:
49-
- php: hhvm
50-
51-
notifications:
52-
email: false
5355

5456
before_install:
5557
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
5658

5759
install:
60+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
61+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
5862
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
5963
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
60-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
61-
- travis_retry composer install $COMPOSER_ARGS
62-
- composer show
64+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
65+
- stty cols 120 && composer show
6366

6467
script:
65-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
66-
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
68+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer run-script test-coverage --timeout=400 -- --verbose ; else composer run-script test --timeout=300 -- --verbose ; fi
69+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
6770

6871
after_script:
69-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
72+
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi
73+
74+
notifications:
75+
email: false

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,21 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9-
- Nothing.
9+
- [#19](https://github.com/zendframework/zend-dom/pull/4) adds support for PHP
10+
versions 7.1 and 7.2.
1011

1112
### Deprecated
1213

1314
- Nothing.
1415

1516
### Removed
1617

17-
- Nothing.
18+
- [#13](https://github.com/zendframework/zend-dom/pull/4) and
19+
[#19](https://github.com/zendframework/zend-dom/pull/4) remove support for PHP
20+
versions prior to 5.6.
21+
22+
- [#13](https://github.com/zendframework/zend-dom/pull/4) and
23+
[#19](https://github.com/zendframework/zend-dom/pull/4) remove support for HHVM.
1824

1925
### Fixed
2026

LICENSE.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
Copyright (c) 2005-2015, Zend Technologies USA, Inc.
2-
1+
Copyright (c) 2005-2017, Zend Technologies USA, Inc.
32
All rights reserved.
43

54
Redistribution and use in source and binary forms, with or without modification,
65
are permitted provided that the following conditions are met:
76

8-
- Redistributions of source code must retain the above copyright notice,
9-
this list of conditions and the following disclaimer.
7+
- Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
109

11-
- Redistributions in binary form must reproduce the above copyright notice,
12-
this list of conditions and the following disclaimer in the documentation
13-
and/or other materials provided with the distribution.
10+
- Redistributions in binary form must reproduce the above copyright notice, this
11+
list of conditions and the following disclaimer in the documentation and/or
12+
other materials provided with the distribution.
1413

1514
- Neither the name of Zend Technologies USA, Inc. nor the names of its
1615
contributors may be used to endorse or promote products derived from this

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# zend-dom
22

33
[![Build Status](https://secure.travis-ci.org/zendframework/zend-dom.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-dom)
4-
[![Coverage Status](https://coveralls.io/repos/zendframework/zend-dom/badge.svg?branch=master)](https://coveralls.io/r/zendframework/zend-dom?branch=master)
4+
[![Coverage Status](https://coveralls.io/repos/github/zendframework/zend-dom/badge.svg?branch=master)](https://coveralls.io/github/zendframework/zend-dom?branch=master)
55

66
The `Zend\Dom` component provides tools for working with DOM documents and
77
structures. Currently, we offer `Zend\Dom\Query`, which provides a unified
88
interface for querying DOM documents utilizing both XPath and CSS selectors.
99

1010

1111
- File issues at https://github.com/zendframework/zend-dom/issues
12-
- Documentation is at http://framework.zend.com/manual/current/en/index.html#zend-dom
12+
- Documentation is at https://docs.zendframework.com/zend-dom

composer.json

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,43 @@
33
"description": "provides tools for working with DOM documents and structures",
44
"license": "BSD-3-Clause",
55
"keywords": [
6-
"zf2",
6+
"zf",
7+
"zendframework",
78
"dom"
89
],
9-
"homepage": "https://github.com/zendframework/zend-dom",
10-
"autoload": {
11-
"psr-4": {
12-
"Zend\\Dom\\": "src/"
13-
}
10+
"support": {
11+
"docs": "https://docs.zendframework.com/zend-dom/",
12+
"issues": "https://github.com/zendframework/zend-dom/issues",
13+
"source": "https://github.com/zendframework/zend-dom",
14+
"rss": "https://github.com/zendframework/zend-dom/releases.atom",
15+
"slack": "https://zendframework-slack.herokuapp.com",
16+
"forum": "https://discourse.zendframework.com/c/questions/components"
1417
},
1518
"require": {
1619
"php": "^5.6 || ^7.0"
1720
},
18-
"minimum-stability": "dev",
19-
"prefer-stable": true,
20-
"extra": {
21-
"branch-alias": {
22-
"dev-master": "2.5-dev",
23-
"dev-develop": "2.6-dev"
21+
"require-dev": {
22+
"phpunit/phpunit": "^5.7.23 || ^6.4.3",
23+
"zendframework/zend-coding-standard": "~1.0.0"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"Zend\\Dom\\": "src/"
2428
}
2529
},
2630
"autoload-dev": {
2731
"psr-4": {
2832
"ZendTest\\Dom\\": "test/"
2933
}
3034
},
31-
"require-dev": {
32-
"phpunit/PHPUnit": "~4.0",
33-
"zendframework/zend-coding-standard": "~1.0.0"
35+
"config": {
36+
"sort-packages": true
37+
},
38+
"extra": {
39+
"branch-alias": {
40+
"dev-master": "2.6-dev",
41+
"dev-develop": "2.7-dev"
42+
}
3443
},
3544
"scripts": {
3645
"check": [
@@ -40,6 +49,6 @@
4049
"cs-check": "phpcs",
4150
"cs-fix": "phpcbf",
4251
"test": "phpunit --colors=always",
43-
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
52+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
4453
}
4554
}

0 commit comments

Comments
 (0)