Skip to content

Commit fa6f5d1

Browse files
authored
Merge pull request #1 from reinder83/add-trait-support
Add trait support
2 parents f2ed2c3 + 008c047 commit fa6f5d1

File tree

8 files changed

+164
-4793
lines changed

8 files changed

+164
-4793
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
/build/pdepend/
88
/build/coverage/
99
/cache.properties
10+
composer.lock

build.xml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,25 @@
66
<property name="phpcpd" value="${basedir}/vendor/bin/phpcpd"/>
77
<property name="phpcbf" value="${basedir}/vendor/bin/phpcbf"/>
88
<property name="phpcs" value="${basedir}/vendor/bin/phpcs"/>
9-
<property name="phpdox" value="${basedir}/vendor/bin/phpdox"/>
109
<property name="phploc" value="${basedir}/vendor/bin/phploc"/>
1110
<property name="phpmd" value="${basedir}/vendor/bin/phpmd"/>
1211
<property name="composer" value="composer"/> <!-- composer should be installed global -->
1312
<property name="phpunit" value="${basedir}/vendor/bin/phpunit"/>
1413

1514
<target name="full-build"
16-
depends="prepare,composer,static-analysis,phpunit,phpdox,-check-failure"
15+
depends="prepare,composer,static-analysis,phpunit,-check-failure"
1716
description="Performs static analysis, runs the tests, and generates project documentation"/>
1817

1918
<target name="precommit"
2019
depends="prepare,composer,phpunit,phpcbf,phpcs,phpcpd,phpmd,displayresult"
2120
description="Performs precommit checks"/>
2221

2322
<target name="full-build-parallel"
24-
depends="prepare,composer,static-analysis-parallel,phpunit,phpdox,-check-failure"
23+
depends="prepare,composer,static-analysis-parallel,phpunit,-check-failure"
2524
description="Performs static analysis (executing the tools in parallel), runs the tests, and generates project documentation"/>
2625

2726
<target name="travis"
28-
depends="prepare,lint,phpunit-travis"
27+
depends="prepare,composer,lint,phpunit-travis"
2928
description="Build specific for Travis CI" />
3029

3130
<target name="quick-build"
@@ -59,7 +58,6 @@
5958
<delete dir="${basedir}/build/coverage"/>
6059
<delete dir="${basedir}/build/logs"/>
6160
<delete dir="${basedir}/build/pdepend"/>
62-
<delete dir="${basedir}/build/phpdox"/>
6361
<property name="clean.done" value="true"/>
6462
</target>
6563

@@ -71,7 +69,6 @@
7169
<mkdir dir="${basedir}/build/coverage"/>
7270
<mkdir dir="${basedir}/build/logs"/>
7371
<mkdir dir="${basedir}/build/pdepend"/>
74-
<mkdir dir="${basedir}/build/phpdox"/>
7572
<property name="prepare.done" value="true"/>
7673
</target>
7774

@@ -272,15 +269,6 @@
272269
<property name="phpunit.done" value="true"/>
273270
</target>
274271

275-
<target name="phpdox"
276-
unless="phpdox.done"
277-
depends="phploc-ci,phpcs-ci,phpmd-ci"
278-
description="Generate project documentation using phpDox">
279-
<exec executable="${phpdox}" dir="${basedir}/build" taskname="phpdox"/>
280-
281-
<property name="phpdox.done" value="true"/>
282-
</target>
283-
284272
<target name="displayresult"
285273
description="Display the coverage">
286274
<exec executable="/usr/bin/open" dir="${basedir}/build" spawn="true">

build/phpdox.xml

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

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919
"phpmd/phpmd": "@stable",
2020
"sebastian/phpcpd": "*",
2121
"squizlabs/php_codesniffer": "2.*",
22-
"phpunit/phpunit": "5.5.*",
22+
"phpunit/phpunit": "^4.8 || ^5.5",
2323
"phploc/phploc": "*",
2424
"pdepend/pdepend": "2.2.4",
2525
"mayflower/php-codebrowser": "~1.1",
26-
"nikic/php-parser": "3.0.x-dev",
27-
"theseer/phpdox": "0.9.0",
2826
"johnkary/phpunit-speedtrap": "^1.0"
2927
},
3028
"autoload-dev": {

0 commit comments

Comments
 (0)