summaryrefslogtreecommitdiff
path: root/devel/pear-PHPUnit3/Makefile
blob: 6f5bc8d46f3ed2f8b999ea9dabd08648c996fbf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
# Ports collection makefile for:  pear-PHPUnit3
# Date created:			  17 May 2007
# Whom:				  Gerrit Beine (<gerrit.beine@gmx.de>)
#
# $FreeBSD$
#

PORTNAME=	PHPUnit
PORTVERSION=	3.4.12
CATEGORIES=	devel www pear
MASTER_SITES=	http://pear.phpunit.de/get/

MAINTAINER=	gerrit.beine@gmx.de
COMMENT=	PEAR regression testing framework for unit tests

BUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
RUN_DEPENDS:=	${BUILD_DEPENDS}

MANUAL_PACKAGE_BUILD=	attempts to contact pear.phpunit.de during install phase

CONFLICTS=	PHPUnit-[0-9]*

LATEST_LINK=	pear-${PORTNAME}
OPTIONS=	PEAR_IMAGE_GRAPHVIZ "PEAR::Image::GraphViz support" off \
		PEAR_LOG "PEAR::Log support" off \
		JSON "Enable JSON support" off \
		PDO "Enable PDO support" off \
		PDO_SQLITE "Enable PDO_SQLite support" off \
		TOKENIZER "Enable Tokenizer support" off \
		PDO_MYSQL "Enable PDO_MySQL support" off \
		XDEBUG "Enable Xdebug support" off

CHANNEL=	pear.phpunit.de
SUB_FILES=	pear-deinstall pear-install
SUB_LIST+=	CHANNEL=${CHANNEL}
PKGINSTALL=	${WRKDIR}/pear-install
PKGDEINSTALL=	${WRKDIR}/pear-deinstall

DEFAULT_PHP_VER=5
IGNORE_WITH_PHP=4

USE_PHP=	dom spl pcre

FILES=		PHPUnit/Extensions/Database/AbstractTester.php \
		PHPUnit/Extensions/Database/Constraint/DataSetIsEqual.php \
		PHPUnit/Extensions/Database/Constraint/TableIsEqual.php \
		PHPUnit/Extensions/Database/DB/DataSet.php \
		PHPUnit/Extensions/Database/DB/DefaultDatabaseConnection.php \
		PHPUnit/Extensions/Database/DB/FilteredDataSet.php \
		PHPUnit/Extensions/Database/DB/IDatabaseConnection.php \
		PHPUnit/Extensions/Database/DB/IMetaData.php \
		PHPUnit/Extensions/Database/DB/MetaData.php \
		PHPUnit/Extensions/Database/DB/MetaData/InformationSchema.php \
		PHPUnit/Extensions/Database/DB/MetaData/MySQL.php \
		PHPUnit/Extensions/Database/DB/MetaData/Oci.php \
		PHPUnit/Extensions/Database/DB/MetaData/PgSQL.php \
		PHPUnit/Extensions/Database/DB/MetaData/Sqlite.php \
		PHPUnit/Extensions/Database/DB/ResultSetTable.php \
		PHPUnit/Extensions/Database/DB/Table.php \
		PHPUnit/Extensions/Database/DB/TableIterator.php \
		PHPUnit/Extensions/Database/DB/TableMetaData.php \
		PHPUnit/Extensions/Database/DataSet/AbstractDataSet.php \
		PHPUnit/Extensions/Database/DataSet/AbstractTable.php \
		PHPUnit/Extensions/Database/DataSet/AbstractTableMetaData.php \
		PHPUnit/Extensions/Database/DataSet/AbstractXmlDataSet.php \
		PHPUnit/Extensions/Database/DataSet/CompositeDataSet.php \
		PHPUnit/Extensions/Database/DataSet/CsvDataSet.php \
		PHPUnit/Extensions/Database/DataSet/DataSetFilter.php \
		PHPUnit/Extensions/Database/DataSet/DefaultDataSet.php \
		PHPUnit/Extensions/Database/DataSet/DefaultTable.php \
		PHPUnit/Extensions/Database/DataSet/DefaultTableIterator.php \
		PHPUnit/Extensions/Database/DataSet/DefaultTableMetaData.php \
		PHPUnit/Extensions/Database/DataSet/FlatXmlDataSet.php \
		PHPUnit/Extensions/Database/DataSet/IDataSet.php \
		PHPUnit/Extensions/Database/DataSet/IPersistable.php \
		PHPUnit/Extensions/Database/DataSet/ISpec.php \
		PHPUnit/Extensions/Database/DataSet/ITable.php \
		PHPUnit/Extensions/Database/DataSet/ITableIterator.php \
		PHPUnit/Extensions/Database/DataSet/ITableMetaData.php \
		PHPUnit/Extensions/Database/DataSet/Persistors/Abstract.php \
		PHPUnit/Extensions/Database/DataSet/Persistors/Factory.php \
		PHPUnit/Extensions/Database/DataSet/Persistors/FlatXml.php \
		PHPUnit/Extensions/Database/DataSet/Persistors/Xml.php \
		PHPUnit/Extensions/Database/DataSet/Persistors/Yaml.php \
		PHPUnit/Extensions/Database/DataSet/QueryDataSet.php \
		PHPUnit/Extensions/Database/DataSet/QueryTable.php \
		PHPUnit/Extensions/Database/DataSet/ReplacementDataSet.php \
		PHPUnit/Extensions/Database/DataSet/ReplacementTable.php \
		PHPUnit/Extensions/Database/DataSet/ReplacementTableIterator.php \
		PHPUnit/Extensions/Database/DataSet/Specs/Csv.php \
		PHPUnit/Extensions/Database/DataSet/Specs/DbQuery.php \
		PHPUnit/Extensions/Database/DataSet/Specs/DbTable.php \
		PHPUnit/Extensions/Database/DataSet/Specs/Factory.php \
		PHPUnit/Extensions/Database/DataSet/Specs/FlatXml.php \
		PHPUnit/Extensions/Database/DataSet/Specs/IFactory.php \
		PHPUnit/Extensions/Database/DataSet/Specs/Xml.php \
		PHPUnit/Extensions/Database/DataSet/Specs/Yaml.php \
		PHPUnit/Extensions/Database/DataSet/TableFilter.php \
		PHPUnit/Extensions/Database/DataSet/TableMetaDataFilter.php \
		PHPUnit/Extensions/Database/DataSet/XmlDataSet.php \
		PHPUnit/Extensions/Database/DataSet/YamlDataSet.php \
		PHPUnit/Extensions/Database/DefaultTester.php \
		PHPUnit/Extensions/Database/IDatabaseListConsumer.php \
		PHPUnit/Extensions/Database/ITester.php \
		PHPUnit/Extensions/Database/Operation/Composite.php \
		PHPUnit/Extensions/Database/Operation/Delete.php \
		PHPUnit/Extensions/Database/Operation/DeleteAll.php \
		PHPUnit/Extensions/Database/Operation/Exception.php \
		PHPUnit/Extensions/Database/Operation/Factory.php \
		PHPUnit/Extensions/Database/Operation/IDatabaseOperation.php \
		PHPUnit/Extensions/Database/Operation/Insert.php \
		PHPUnit/Extensions/Database/Operation/Null.php \
		PHPUnit/Extensions/Database/Operation/Replace.php \
		PHPUnit/Extensions/Database/Operation/RowBased.php \
		PHPUnit/Extensions/Database/Operation/Truncate.php \
		PHPUnit/Extensions/Database/Operation/Update.php \
		PHPUnit/Extensions/Database/TestCase.php \
		PHPUnit/Extensions/Database/UI/Command.php \
		PHPUnit/Extensions/Database/UI/Context.php \
		PHPUnit/Extensions/Database/UI/IMedium.php \
		PHPUnit/Extensions/Database/UI/IMediumPrinter.php \
		PHPUnit/Extensions/Database/UI/IMode.php \
		PHPUnit/Extensions/Database/UI/IModeFactory.php \
		PHPUnit/Extensions/Database/UI/InvalidModeException.php \
		PHPUnit/Extensions/Database/UI/Mediums/Text.php \
		PHPUnit/Extensions/Database/UI/ModeFactory.php \
		PHPUnit/Extensions/Database/UI/Modes/ExportDataSet.php \
		PHPUnit/Extensions/Database/UI/Modes/ExportDataSet/Arguments.php \
		PHPUnit/Extensions/GroupTestSuite.php \
		PHPUnit/Extensions/OutputTestCase.php \
		PHPUnit/Extensions/PerformanceTestCase.php \
		PHPUnit/Extensions/PhptTestCase.php \
		PHPUnit/Extensions/PhptTestCase/Logger.php \
		PHPUnit/Extensions/PhptTestSuite.php \
		PHPUnit/Extensions/RepeatedTest.php \
		PHPUnit/Extensions/SeleniumTestCase.php \
		PHPUnit/Extensions/SeleniumTestCase/Driver.php \
		PHPUnit/Extensions/SeleniumTestCase/append.php \
		PHPUnit/Extensions/SeleniumTestCase/phpunit_coverage.php \
		PHPUnit/Extensions/SeleniumTestCase/prepend.php \
		PHPUnit/Extensions/Story/Given.php \
		PHPUnit/Extensions/Story/ResultPrinter.php \
		PHPUnit/Extensions/Story/ResultPrinter/HTML.php \
		PHPUnit/Extensions/Story/ResultPrinter/Template/scenario.html.dist \
		PHPUnit/Extensions/Story/ResultPrinter/Template/scenario_header.html.dist \
		PHPUnit/Extensions/Story/ResultPrinter/Template/scenarios.html.dist \
		PHPUnit/Extensions/Story/ResultPrinter/Template/step.html.dist \
		PHPUnit/Extensions/Story/ResultPrinter/Text.php \
		PHPUnit/Extensions/Story/Scenario.php \
		PHPUnit/Extensions/Story/SeleniumTestCase.php \
		PHPUnit/Extensions/Story/Step.php \
		PHPUnit/Extensions/Story/TestCase.php \
		PHPUnit/Extensions/Story/Then.php \
		PHPUnit/Extensions/Story/When.php \
		PHPUnit/Extensions/TestDecorator.php \
		PHPUnit/Extensions/TicketListener.php \
		PHPUnit/Extensions/TicketListener/Trac.php \
		PHPUnit/Framework.php \
		PHPUnit/Framework/Assert.php \
		PHPUnit/Framework/AssertionFailedError.php \
		PHPUnit/Framework/ComparisonFailure.php \
		PHPUnit/Framework/ComparisonFailure/Array.php \
		PHPUnit/Framework/ComparisonFailure/Object.php \
		PHPUnit/Framework/ComparisonFailure/Scalar.php \
		PHPUnit/Framework/ComparisonFailure/String.php \
		PHPUnit/Framework/ComparisonFailure/Type.php \
		PHPUnit/Framework/Constraint.php \
		PHPUnit/Framework/Constraint/And.php \
		PHPUnit/Framework/Constraint/ArrayHasKey.php \
		PHPUnit/Framework/Constraint/Attribute.php \
		PHPUnit/Framework/Constraint/ClassHasAttribute.php \
		PHPUnit/Framework/Constraint/ClassHasStaticAttribute.php \
		PHPUnit/Framework/Constraint/FileExists.php \
		PHPUnit/Framework/Constraint/GreaterThan.php \
		PHPUnit/Framework/Constraint/IsAnything.php \
		PHPUnit/Framework/Constraint/IsEqual.php \
		PHPUnit/Framework/Constraint/IsFalse.php \
		PHPUnit/Framework/Constraint/IsIdentical.php \
		PHPUnit/Framework/Constraint/IsInstanceOf.php \
		PHPUnit/Framework/Constraint/IsNull.php \
		PHPUnit/Framework/Constraint/IsTrue.php \
		PHPUnit/Framework/Constraint/IsType.php \
		PHPUnit/Framework/Constraint/LessThan.php \
		PHPUnit/Framework/Constraint/Not.php \
		PHPUnit/Framework/Constraint/ObjectHasAttribute.php \
		PHPUnit/Framework/Constraint/Or.php \
		PHPUnit/Framework/Constraint/PCREMatch.php \
		PHPUnit/Framework/Constraint/StringContains.php \
		PHPUnit/Framework/Constraint/StringEndsWith.php \
		PHPUnit/Framework/Constraint/StringStartsWith.php \
		PHPUnit/Framework/Constraint/TraversableContains.php \
		PHPUnit/Framework/Constraint/TraversableContainsOnly.php \
		PHPUnit/Framework/Constraint/Xor.php \
		PHPUnit/Framework/Error.php \
		PHPUnit/Framework/Error/Notice.php \
		PHPUnit/Framework/Error/Warning.php \
		PHPUnit/Framework/Exception.php \
		PHPUnit/Framework/ExpectationFailedException.php \
		PHPUnit/Framework/IncompleteTest.php \
		PHPUnit/Framework/IncompleteTestError.php \
		PHPUnit/Framework/MockObject/Builder/Identity.php \
		PHPUnit/Framework/MockObject/Builder/InvocationMocker.php \
		PHPUnit/Framework/MockObject/Builder/Match.php \
		PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php \
		PHPUnit/Framework/MockObject/Builder/Namespace.php \
		PHPUnit/Framework/MockObject/Builder/ParametersMatch.php \
		PHPUnit/Framework/MockObject/Builder/Stub.php \
		PHPUnit/Framework/MockObject/Generator.php \
		PHPUnit/Framework/MockObject/Generator/mocked_class.tpl.dist \
		PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist \
		PHPUnit/Framework/MockObject/Generator/mocked_method.tpl.dist \
		PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist \
		PHPUnit/Framework/MockObject/Generator/wsdl_class.tpl.dist \
		PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist \
		PHPUnit/Framework/MockObject/Invocation.php \
		PHPUnit/Framework/MockObject/InvocationMocker.php \
		PHPUnit/Framework/MockObject/Invokable.php \
		PHPUnit/Framework/MockObject/Matcher.php \
		PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php \
		PHPUnit/Framework/MockObject/Matcher/AnyParameters.php \
		PHPUnit/Framework/MockObject/Matcher/Invocation.php \
		PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php \
		PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php \
		PHPUnit/Framework/MockObject/Matcher/InvokedCount.php \
		PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php \
		PHPUnit/Framework/MockObject/Matcher/MethodName.php \
		PHPUnit/Framework/MockObject/Matcher/Parameters.php \
		PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php \
		PHPUnit/Framework/MockObject/MockObject.php \
		PHPUnit/Framework/MockObject/Stub.php \
		PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php \
		PHPUnit/Framework/MockObject/Stub/Exception.php \
		PHPUnit/Framework/MockObject/Stub/MatcherCollection.php \
		PHPUnit/Framework/MockObject/Stub/Return.php \
		PHPUnit/Framework/MockObject/Stub/ReturnArgument.php \
		PHPUnit/Framework/MockObject/Stub/ReturnCallback.php \
		PHPUnit/Framework/MockObject/Verifiable.php \
		PHPUnit/Framework/Process/TestCaseMethod.tpl.dist \
		PHPUnit/Framework/SelfDescribing.php \
		PHPUnit/Framework/SkippedTest.php \
		PHPUnit/Framework/SkippedTestError.php \
		PHPUnit/Framework/SkippedTestSuiteError.php \
		PHPUnit/Framework/Test.php \
		PHPUnit/Framework/TestCase.php \
		PHPUnit/Framework/TestFailure.php \
		PHPUnit/Framework/TestListener.php \
		PHPUnit/Framework/TestResult.php \
		PHPUnit/Framework/TestSuite.php \
		PHPUnit/Framework/TestSuite/DataProvider.php \
		PHPUnit/Framework/Warning.php \
		PHPUnit/Runner/BaseTestRunner.php \
		PHPUnit/Runner/IncludePathTestCollector.php \
		PHPUnit/Runner/StandardTestSuiteLoader.php \
		PHPUnit/Runner/TestCollector.php \
		PHPUnit/Runner/TestSuiteLoader.php \
		PHPUnit/Runner/Version.php \
		PHPUnit/TextUI/Command.php \
		PHPUnit/TextUI/ResultPrinter.php \
		PHPUnit/TextUI/TestRunner.php \
		PHPUnit/Util/Class.php \
		PHPUnit/Util/CodeCoverage.php \
		PHPUnit/Util/Configuration.php \
		PHPUnit/Util/Diff.php \
		PHPUnit/Util/ErrorHandler.php \
		PHPUnit/Util/File.php \
		PHPUnit/Util/Fileloader.php \
		PHPUnit/Util/Filesystem.php \
		PHPUnit/Util/Filter.php \
		PHPUnit/Util/FilterIterator.php \
		PHPUnit/Util/Getopt.php \
		PHPUnit/Util/GlobalState.php \
		PHPUnit/Util/InvalidArgumentHelper.php \
		PHPUnit/Util/Log/CPD.php \
		PHPUnit/Util/Log/CodeCoverage/Database.php \
		PHPUnit/Util/Log/CodeCoverage/XML/Clover.php \
		PHPUnit/Util/Log/CodeCoverage/XML/Source.php \
		PHPUnit/Util/Log/Database.php \
		PHPUnit/Util/Log/Database/MySQL.sql \
		PHPUnit/Util/Log/Database/SQLite3.sql \
		PHPUnit/Util/Log/GraphViz.php \
		PHPUnit/Util/Log/JSON.php \
		PHPUnit/Util/Log/JUnit.php \
		PHPUnit/Util/Log/Metrics.php \
		PHPUnit/Util/Log/PEAR.php \
		PHPUnit/Util/Log/PMD.php \
		PHPUnit/Util/Log/PMD/Rule.php \
		PHPUnit/Util/Log/PMD/Rule/Class.php \
		PHPUnit/Util/Log/PMD/Rule/Class/DepthOfInheritanceTree.php \
		PHPUnit/Util/Log/PMD/Rule/Class/EfferentCoupling.php \
		PHPUnit/Util/Log/PMD/Rule/Class/ExcessiveClassLength.php \
		PHPUnit/Util/Log/PMD/Rule/Class/ExcessivePublicCount.php \
		PHPUnit/Util/Log/PMD/Rule/Class/TooManyFields.php \
		PHPUnit/Util/Log/PMD/Rule/File.php \
		PHPUnit/Util/Log/PMD/Rule/Function.php \
		PHPUnit/Util/Log/PMD/Rule/Function/CRAP.php \
		PHPUnit/Util/Log/PMD/Rule/Function/CodeCoverage.php \
		PHPUnit/Util/Log/PMD/Rule/Function/CyclomaticComplexity.php \
		PHPUnit/Util/Log/PMD/Rule/Function/ExcessiveMethodLength.php \
		PHPUnit/Util/Log/PMD/Rule/Function/ExcessiveParameterList.php \
		PHPUnit/Util/Log/PMD/Rule/Function/NPathComplexity.php \
		PHPUnit/Util/Log/PMD/Rule/Project.php \
		PHPUnit/Util/Log/PMD/Rule/Project/CRAP.php \
		PHPUnit/Util/Log/TAP.php \
		PHPUnit/Util/Metrics.php \
		PHPUnit/Util/Metrics/Class.php \
		PHPUnit/Util/Metrics/File.php \
		PHPUnit/Util/Metrics/Function.php \
		PHPUnit/Util/Metrics/Project.php \
		PHPUnit/Util/PDO.php \
		PHPUnit/Util/PHP.php \
		PHPUnit/Util/Printer.php \
		PHPUnit/Util/Report.php \
		PHPUnit/Util/Report/Node.php \
		PHPUnit/Util/Report/Node/Directory.php \
		PHPUnit/Util/Report/Node/File.php \
		PHPUnit/Util/Report/Template/butter.png \
		PHPUnit/Util/Report/Template/chameleon.png \
		PHPUnit/Util/Report/Template/close12_1.gif \
		PHPUnit/Util/Report/Template/container-min.js \
		PHPUnit/Util/Report/Template/container.css \
		PHPUnit/Util/Report/Template/directory.html.dist \
		PHPUnit/Util/Report/Template/directory_item.html.dist \
		PHPUnit/Util/Report/Template/file.html.dist \
		PHPUnit/Util/Report/Template/file_item.html.dist \
		PHPUnit/Util/Report/Template/file_no_yui.html.dist \
		PHPUnit/Util/Report/Template/glass.png \
		PHPUnit/Util/Report/Template/method_item.html.dist \
		PHPUnit/Util/Report/Template/scarlet_red.png \
		PHPUnit/Util/Report/Template/snow.png \
		PHPUnit/Util/Report/Template/style.css \
		PHPUnit/Util/Report/Template/yahoo-dom-event.js \
		PHPUnit/Util/Report/Template/yui_item.js \
		PHPUnit/Util/Skeleton.php \
		PHPUnit/Util/Skeleton/Class.php \
		PHPUnit/Util/Skeleton/Template/Class.tpl.dist \
		PHPUnit/Util/Skeleton/Template/IncompleteTestMethod.tpl.dist \
		PHPUnit/Util/Skeleton/Template/Method.tpl.dist \
		PHPUnit/Util/Skeleton/Template/TestClass.tpl.dist \
		PHPUnit/Util/Skeleton/Template/TestMethod.tpl.dist \
		PHPUnit/Util/Skeleton/Template/TestMethodBool.tpl.dist \
		PHPUnit/Util/Skeleton/Template/TestMethodBoolStatic.tpl.dist \
		PHPUnit/Util/Skeleton/Template/TestMethodException.tpl.dist \
		PHPUnit/Util/Skeleton/Template/TestMethodExceptionStatic.tpl.dist \
		PHPUnit/Util/Skeleton/Template/TestMethodStatic.tpl.dist \
		PHPUnit/Util/Skeleton/Test.php \
		PHPUnit/Util/Template.php \
		PHPUnit/Util/Test.php \
		PHPUnit/Util/TestDox/NamePrettifier.php \
		PHPUnit/Util/TestDox/ResultPrinter.php \
		PHPUnit/Util/TestDox/ResultPrinter/HTML.php \
		PHPUnit/Util/TestDox/ResultPrinter/Text.php \
		PHPUnit/Util/TestSuiteIterator.php \
		PHPUnit/Util/Timer.php \
		PHPUnit/Util/Type.php \
		PHPUnit/Util/XML.php

EXAMPLES=	BankAccount/BankAccount.php \
		BankAccount/BankAccountTest.php \
		BankAccountDB/_files/bank-account-after-deposits.xml \
		BankAccountDB/_files/bank-account-after-new-account.xml \
		BankAccountDB/_files/bank-account-after-withdrawals.xml \
		BankAccountDB/_files/bank-account-seed.xml \
		BankAccountDB/BankAccount.php \
		BankAccountDB/BankAccountDBTest.php \
		BankAccountDB/BankAccountDBTestMySQL.php \
		BowlingGame/BowlingGame.php \
		BowlingGame/BowlingGameSpec.php \
		BowlingGame/BowlingGameTest.php \
		Money/IMoney.php \
		Money/Money.php \
		Money/MoneyBag.php \
		Money/MoneyTest.php
SCRIPTFILES=	phpunit dbunit
_EXAMPLESDIR=	PHPUnit/Samples

.include <bsd.port.pre.mk>

.if defined(WITH_PEAR_LOG)
RUN_DEPENDS+=	${PEARDIR}/Log/null.php:${PORTSDIR}/sysutils/pear-Log
.endif

.if defined(WITH_PEAR_IMAGE_GRAPHVIZ)
RUN_DEPENDS+=	${PEARDIR}/Image/GraphViz.php:${PORTSDIR}/graphics/pear-Image_GraphViz
.endif

.if defined(WITH_JSON)
USE_PHP+=	json
.endif

.if defined(WITH_PDO)
USE_PHP+=	pdo
.endif

.if defined(WITH_PDO_MYSQL)
USE_PHP+=	pdo_mysql
.endif

.if defined(WITH_PDO_SQLITE)
USE_PHP+=	pdo_sqlite
.endif

.if defined(WITH_TOKENIZER)
USE_PHP+=	tokenizer
.endif

.if defined(WITH_XDEBUG)
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdebug.so:${PORTSDIR}/devel/php-xdebug
.endif

post-patch:
	@${MV} ${WRKSRC}/dbunit.php ${WRKSRC}/pear-dbunit
	@${MV} ${WRKSRC}/phpunit.php ${WRKSRC}/pear-phpunit

.include "${PORTSDIR}/Mk/bsd.php.mk"
.include "${PORTSDIR}/devel/pear/bsd.pear.mk"
.include <bsd.port.post.mk>