Skip to content

Commit 3a5808f

Browse files
Cleanup
1 parent dbc451e commit 3a5808f

File tree

375 files changed

+37
-40
lines changed

Some content is hidden

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

375 files changed

+37
-40
lines changed

build.xml

+17-17
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@
5555
<apply executable="${php}" failonerror="true">
5656
<arg value="-l" />
5757

58-
<fileset dir="${basedir}/PHPUnit">
58+
<fileset dir="${basedir}/src">
5959
<include name="**/*.php" />
6060
<modified />
6161
</fileset>
6262

63-
<fileset dir="${basedir}/Tests">
63+
<fileset dir="${basedir}/tests">
6464
<include name="**/*.php" />
6565
<modified />
6666
</fileset>
@@ -73,7 +73,7 @@
7373
<arg value="${basedir}/build/logs/phploc.csv" />
7474
<arg value="--log-xml" />
7575
<arg value="${basedir}/build/logs/phploc.xml" />
76-
<arg path="${basedir}/PHPUnit" />
76+
<arg path="${basedir}/src" />
7777
</exec>
7878
</target>
7979

@@ -83,14 +83,14 @@
8383
<arg value="--jdepend-xml=${basedir}/build/logs/jdepend.xml" />
8484
<arg value="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg" />
8585
<arg value="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg" />
86-
<arg path="${basedir}/PHPUnit" />
86+
<arg path="${basedir}/src" />
8787
</exec>
8888
</target>
8989

9090
<target name="phpmd"
9191
description="Perform project mess detection using PHPMD">
9292
<exec executable="phpmd">
93-
<arg path="${basedir}/PHPUnit" />
93+
<arg path="${basedir}/src" />
9494
<arg value="text" />
9595
<arg value="${basedir}/build/phpmd.xml" />
9696
</exec>
@@ -99,7 +99,7 @@
9999
<target name="phpmd-ci"
100100
description="Perform project mess detection using PHPMD">
101101
<exec executable="phpmd">
102-
<arg path="${basedir}/PHPUnit" />
102+
<arg path="${basedir}/src" />
103103
<arg value="xml" />
104104
<arg value="${basedir}/build/phpmd.xml" />
105105
<arg value="--reportfile" />
@@ -113,8 +113,8 @@
113113
<arg value="--standard=${basedir}/build/PHPCS" />
114114
<arg value="--extensions=php" />
115115
<arg value="--ignore=Autoload.php" />
116-
<arg path="${basedir}/PHPUnit" />
117-
<arg path="${basedir}/Tests" />
116+
<arg path="${basedir}/src" />
117+
<arg path="${basedir}/tests" />
118118
</exec>
119119
</target>
120120

@@ -126,22 +126,22 @@
126126
<arg value="--standard=${basedir}/build/PHPCS" />
127127
<arg value="--extensions=php" />
128128
<arg value="--ignore=Autoload.php" />
129-
<arg path="${basedir}/PHPUnit" />
130-
<arg path="${basedir}/Tests" />
129+
<arg path="${basedir}/src" />
130+
<arg path="${basedir}/tests" />
131131
</exec>
132132
</target>
133133

134134
<target name="phpcpd" description="Find duplicate code using PHPCPD">
135135
<exec executable="phpcpd">
136136
<arg value="--log-pmd" />
137137
<arg value="${basedir}/build/logs/pmd-cpd.xml" />
138-
<arg path="${basedir}/PHPUnit" />
138+
<arg path="${basedir}/src" />
139139
</exec>
140140
</target>
141141

142142
<target name="phpunit" description="Run unit tests with PHPUnit">
143143
<exec executable="${php}" failonerror="true">
144-
<arg path="${basedir}/phpunit" />
144+
<arg path="${basedir}/src" />
145145
</exec>
146146
</target>
147147

@@ -155,24 +155,24 @@
155155
depends="phar">
156156
<exec executable="bash" outputproperty="version">
157157
<arg value="-c" />
158-
<arg value="${basedir}/phpunit --version | awk 'BEGIN { ORS = &quot;&quot;; } {print $2}'" />
158+
<arg value="${basedir}/src --version | awk 'BEGIN { ORS = &quot;&quot;; } {print $2}'" />
159159
</exec>
160160

161-
<copy file="${basedir}/build/phpunit-${version}.phar" tofile="${basedir}/phpunit.phar" />
161+
<copy file="${basedir}/build/phpunit-${version}.phar" tofile="${basedir}/src.phar" />
162162

163163
<exec executable="pear">
164164
<arg value="package" />
165165
</exec>
166166

167-
<delete file="${basedir}/phpunit.phar"/>
167+
<delete file="${basedir}/src.phar"/>
168168
</target>
169169

170170
<target name="phar"
171171
description="Create PHAR archive of PHPUnit and all its dependencies (release)"
172172
depends="phar-prepare">
173173
<exec executable="bash" outputproperty="version">
174174
<arg value="-c" />
175-
<arg value="${basedir}/phpunit --version | awk 'BEGIN { ORS = &quot;&quot;; } {print $2}'" />
175+
<arg value="${basedir}/src --version | awk 'BEGIN { ORS = &quot;&quot;; } {print $2}'" />
176176
</exec>
177177

178178
<antcall target="phar-build">
@@ -325,7 +325,7 @@
325325

326326
<target name="phar-build">
327327
<copy todir="${basedir}/build/phar/phpunit">
328-
<fileset dir="${basedir}/PHPUnit">
328+
<fileset dir="${basedir}/src">
329329
<include name="**/*.php" />
330330
<include name="**/*.tpl*" />
331331
<exclude name="**/Autoload.*" />

build/travis-ci.xml

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="http://phpunit.de/phpunit.xsd"
4-
bootstrap="../Tests/bootstrap-travis.php"
4+
bootstrap="../tests/bootstrap-travis.php"
55
backupGlobals="false"
66
colors="true"
77
verbose="true">
88
<testsuites>
99
<testsuite name="PHPUnit">
10-
<directory suffix="Test.php">../Tests/Framework</directory>
11-
<directory suffix=".phpt">../Tests/Framework/MockObject</directory>
12-
<directory suffix="Test.php">../Tests/Extensions</directory>
13-
<directory suffix=".phpt">../Tests/Regression</directory>
14-
<directory suffix="Test.php">../Tests/Runner</directory>
15-
<directory suffix=".phpt">../Tests/TextUI</directory>
16-
<directory suffix="Test.php">../Tests/Util</directory>
10+
<directory suffix="Test.php">../tests/Framework</directory>
11+
<directory suffix="Test.php">../tests/Extensions</directory>
12+
<directory suffix="Test.php">../tests/Runner</directory>
13+
<directory suffix="Test.php">../tests/Util</directory>
14+
<directory suffix=".phpt">../tests/TextUI</directory>
15+
<directory suffix=".phpt">../tests/Regression</directory>
1716
</testsuite>
1817
</testsuites>
1918

@@ -23,9 +22,9 @@
2322

2423
<filter>
2524
<whitelist processUncoveredFilesFromWhitelist="true">
26-
<directory suffix=".php">../PHPUnit</directory>
25+
<directory suffix=".php">../src</directory>
2726
<exclude>
28-
<file>../PHPUnit/Framework/Assert/Functions.php</file>
27+
<file>../src/Framework/Assert/Functions.php</file>
2928
</exclude>
3029
</whitelist>
3130
</filter>

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
"autoload": {
6262
"classmap": [
63-
"PHPUnit/"
63+
"src/"
6464
]
6565
},
6666
"extra": {

phpdox.xml.dist

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<phpdox xmlns="http://phpdox.net/config">
3-
<project name="PHPUnit" source="PHPUnit" workdir="build/phpdox">
3+
<project name="PHPUnit" source="src" workdir="build/phpdox">
44
<collector publiconly="false">
55
<include mask="*.php" />
6-
<exclude mask="*Autoload.php" />
76
</collector>
87

98
<generator output="build">

phpunit.xml.dist

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/3.8/phpunit.xsd"
4-
bootstrap="Tests/bootstrap.php"
4+
bootstrap="tests/bootstrap.php"
55
backupGlobals="false"
66
verbose="true">
77
<testsuites>
88
<testsuite name="small">
9-
<directory suffix="Test.php">Tests/Framework</directory>
10-
<directory suffix="Test.php">Tests/Extensions</directory>
11-
<directory suffix="Test.php">Tests/Runner</directory>
12-
<directory suffix="Test.php">Tests/Util</directory>
9+
<directory suffix="Test.php">tests/Framework</directory>
10+
<directory suffix="Test.php">tests/Extensions</directory>
11+
<directory suffix="Test.php">tests/Runner</directory>
12+
<directory suffix="Test.php">tests/Util</directory>
1313
</testsuite>
1414

1515
<testsuite name="large">
@@ -27,9 +27,9 @@
2727

2828
<filter>
2929
<whitelist processUncoveredFilesFromWhitelist="true">
30-
<directory suffix=".php">PHPUnit</directory>
30+
<directory suffix=".php">src</directory>
3131
<exclude>
32-
<file>PHPUnit/Framework/Assert/Functions.php</file>
32+
<file>src/Framework/Assert/Functions.php</file>
3333
</exclude>
3434
</whitelist>
3535
</filter>
@@ -38,4 +38,3 @@
3838
<const name="PHPUNIT_TESTSUITE" value="true"/>
3939
</php>
4040
</phpunit>
41-
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)