Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2007 13:42:19 -0500 (EST)
From:      Greg Larkin <glarkin@sourcehosting.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        glarkin@sourcehosting.net
Subject:   ports/118076: [NEW PORT] devel/pear-PHPUnit31: PEAR regression testing framework for unit tests
Message-ID:  <200711151842.lAFIgJ7a096464@ports.entropy.prv>
Resent-Message-ID: <200711151850.lAFIo3Lb032101@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         118076
>Category:       ports
>Synopsis:       [NEW PORT] devel/pear-PHPUnit31: PEAR regression testing framework for unit tests
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 15 18:50:03 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Greg Larkin
>Release:        FreeBSD 6.1-SECURITY i386
>Organization:
SourceHosting.net, LLC
>Environment:
System: FreeBSD ports.entropy.prv 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Thu Apr 26 14:24:01 UTC 2007
>Description:

NOTE: This port depends on PR ports/118075

PHPUnit is a regression testing framework used by the developer
who implements unit tests in PHP. It is based upon JUnit, which
can be found at http://www.junit.org/.

WWW: http://www.phpunit.de/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- pear-PHPUnit-3.1.9.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pear-PHPUnit31
#	pear-PHPUnit31/Makefile
#	pear-PHPUnit31/distinfo
#	pear-PHPUnit31/pkg-descr
#	pear-PHPUnit31/files
#	pear-PHPUnit31/files/pear-deinstall.in
#	pear-PHPUnit31/files/pear-install.in
#	pear-PHPUnit31/files/pkg-message.in
#
echo c - pear-PHPUnit31
mkdir -p pear-PHPUnit31 > /dev/null 2>&1
echo x - pear-PHPUnit31/Makefile
sed 's/^X//' >pear-PHPUnit31/Makefile << 'END-of-pear-PHPUnit31/Makefile'
X# Ports collection makefile for:  pear-PHPUnit31
X# Date created:			  15 Nov 2007
X# Whom:				  Greg Larkin (<glarkin@sourcehosting.net>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	PHPUnit
XPORTVERSION=	3.1.9
XCATEGORIES=	devel www pear
XMASTER_SITES=	http://pear.phpunit.de/get/
X
XMAINTAINER=	glarkin@sourcehosting.net
XCOMMENT=	PEAR regression testing framework for unit tests
X
XBUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XCONFLICTS=	pear-PHPUnit-1.* pear-PHPUnit-2.* pear-PHPUnit-3.0.*
X
XLATEST_LINK=	pear-${PORTNAME}
XOPTIONS=	PEAR_LOG "PEAR::Log support" off \
X		JSON "Enable JSON support" off \
X		GRAPHVIZ "Enable PEAR::Image_GraphViz support" off \
X		TOKENIZER "Enable PHP tokenizer support" off \
X		XDEBUG "Enable PHP XDebug support" off \
X		PDO_MYSQL "Enable PHP PDO MySQL support" off \
X		PDO_SQLITE "Enable PHP PDO SQLite support" off
X
XCHANNEL=	pear.phpunit.de
XSUB_FILES=	pear-deinstall pear-install pkg-message
XSUB_LIST+=	CHANNEL=${CHANNEL} PKG_PREFIX=${PKG_PREFIX}
XPKGINSTALL=	${WRKDIR}/pear-install
XPKGDEINSTALL=	${WRKDIR}/pear-deinstall
X
XDEFAULT_PHP_VER=5
XIGNORE_WITH_PHP=4
X
XUSE_PHP=	dom spl pcre
X
XFILES=		PHPUnit/Extensions/PhptTestCase/Logger.php \
X		PHPUnit/Extensions/ExceptionTestCase.php \
X		PHPUnit/Extensions/OutputTestCase.php \
X		PHPUnit/Extensions/PerformanceTestCase.php \
X		PHPUnit/Extensions/PhptTestCase.php \
X		PHPUnit/Extensions/PhptTestSuite.php \
X		PHPUnit/Extensions/RepeatedTest.php \
X		PHPUnit/Extensions/SeleniumTestCase.php \
X		PHPUnit/Extensions/TestDecorator.php \
X		PHPUnit/Extensions/TestSetup.php \
X		PHPUnit/Framework/ComparisonFailure/Array.php \
X		PHPUnit/Framework/ComparisonFailure/Object.php \
X		PHPUnit/Framework/ComparisonFailure/Scalar.php \
X		PHPUnit/Framework/ComparisonFailure/String.php \
X		PHPUnit/Framework/ComparisonFailure/Type.php \
X		PHPUnit/Framework/Constraint/And.php \
X		PHPUnit/Framework/Constraint/ArrayHasKey.php \
X		PHPUnit/Framework/Constraint/Attribute.php \
X		PHPUnit/Framework/Constraint/ClassHasAttribute.php \
X		PHPUnit/Framework/Constraint/ClassHasStaticAttribute.php \
X		PHPUnit/Framework/Constraint/FileExists.php \
X		PHPUnit/Framework/Constraint/GreaterThan.php \
X		PHPUnit/Framework/Constraint/IsAnything.php \
X		PHPUnit/Framework/Constraint/IsEqual.php \
X		PHPUnit/Framework/Constraint/IsIdentical.php \
X		PHPUnit/Framework/Constraint/IsInstanceOf.php \
X		PHPUnit/Framework/Constraint/IsType.php \
X		PHPUnit/Framework/Constraint/LessThan.php \
X		PHPUnit/Framework/Constraint/Not.php \
X		PHPUnit/Framework/Constraint/ObjectHasAttribute.php \
X		PHPUnit/Framework/Constraint/Or.php \
X		PHPUnit/Framework/Constraint/PCREMatch.php \
X		PHPUnit/Framework/Constraint/StringContains.php \
X		PHPUnit/Framework/Constraint/TraversableContains.php \
X		PHPUnit/Framework/Constraint/Xor.php \
X		PHPUnit/Framework/Constraint/TraversableContainsOnly.php \
X		PHPUnit/Framework/MockObject/Builder/Identity.php \
X		PHPUnit/Framework/MockObject/Builder/InvocationMocker.php \
X		PHPUnit/Framework/MockObject/Builder/Match.php \
X		PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php \
X		PHPUnit/Framework/MockObject/Builder/Namespace.php \
X		PHPUnit/Framework/MockObject/Builder/ParametersMatch.php \
X		PHPUnit/Framework/MockObject/Builder/Stub.php \
X		PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php \
X		PHPUnit/Framework/MockObject/Matcher/AnyParameters.php \
X		PHPUnit/Framework/MockObject/Matcher/Invocation.php \
X		PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php \
X		PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php \
X		PHPUnit/Framework/MockObject/Matcher/InvokedCount.php \
X		PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php \
X		PHPUnit/Framework/MockObject/Matcher/MethodName.php \
X		PHPUnit/Framework/MockObject/Matcher/Parameters.php \
X		PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php \
X		PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php \
X		PHPUnit/Framework/MockObject/Stub/Exception.php \
X		PHPUnit/Framework/MockObject/Stub/MatcherCollection.php \
X		PHPUnit/Framework/MockObject/Stub/Return.php \
X		PHPUnit/Framework/MockObject/Invocation.php \
X		PHPUnit/Framework/MockObject/InvocationMocker.php \
X		PHPUnit/Framework/MockObject/Invokable.php \
X		PHPUnit/Framework/MockObject/Matcher.php \
X		PHPUnit/Framework/MockObject/Mock.php \
X		PHPUnit/Framework/MockObject/MockObject.php \
X		PHPUnit/Framework/MockObject/Stub.php \
X		PHPUnit/Framework/MockObject/Verifiable.php \
X		PHPUnit/Framework/Assert.php \
X		PHPUnit/Framework/AssertionFailedError.php \
X		PHPUnit/Framework/ComparisonFailure.php \
X		PHPUnit/Framework/Constraint.php \
X		PHPUnit/Framework/Error.php \
X		PHPUnit/Framework/ExpectationFailedException.php \
X		PHPUnit/Framework/IncompleteTest.php \
X		PHPUnit/Framework/IncompleteTestError.php \
X		PHPUnit/Framework/Notice.php \
X		PHPUnit/Framework/SelfDescribing.php \
X		PHPUnit/Framework/SkippedTest.php \
X		PHPUnit/Framework/SkippedTestError.php \
X		PHPUnit/Framework/SkippedTestSuiteError.php \
X		PHPUnit/Framework/Test.php \
X		PHPUnit/Framework/TestCase.php \
X		PHPUnit/Framework/TestFailure.php \
X		PHPUnit/Framework/TestListener.php \
X		PHPUnit/Framework/TestResult.php \
X		PHPUnit/Framework/TestSuite.php \
X		PHPUnit/Framework/Warning.php \
X		PHPUnit/Runner/BaseTestRunner.php \
X		PHPUnit/Runner/IncludePathTestCollector.php \
X		PHPUnit/Runner/StandardTestSuiteLoader.php \
X		PHPUnit/Runner/TestCollector.php \
X		PHPUnit/Runner/TestSuiteLoader.php \
X		PHPUnit/Runner/Version.php \
X		PHPUnit/TextUI/Command.php \
X		PHPUnit/TextUI/ResultPrinter.php \
X		PHPUnit/TextUI/TestRunner.php \
X		PHPUnit/Util/Log/CodeCoverage/Database.php \
X		PHPUnit/Util/Log/CodeCoverage/XML.php \
X		PHPUnit/Util/Log/Database/MySQL.sql \
X		PHPUnit/Util/Log/Database/SQLite3.sql \
X		PHPUnit/Util/Log/Database.php \
X		PHPUnit/Util/Log/GraphViz.php \
X		PHPUnit/Util/Log/JSON.php \
X		PHPUnit/Util/Log/PEAR.php \
X		PHPUnit/Util/Log/TAP.php \
X		PHPUnit/Util/Log/XML.php \
X		PHPUnit/Util/Report/Coverage/Node/Directory.php \
X		PHPUnit/Util/Report/Coverage/Node/File.php \
X		PHPUnit/Util/Report/Coverage/Factory.php \
X		PHPUnit/Util/Report/Coverage/Node.php \
X		PHPUnit/Util/Report/Template/butter.png \
X		PHPUnit/Util/Report/Template/chameleon.png \
X		PHPUnit/Util/Report/Template/coverage_directory.html \
X		PHPUnit/Util/Report/Template/coverage_file.html \
X		PHPUnit/Util/Report/Template/coverage_item.html \
X		PHPUnit/Util/Report/Template/coverage_item_details.html \
X		PHPUnit/Util/Report/Template/coverage_item_details_header.html \
X		PHPUnit/Util/Report/Template/glass.png \
X		PHPUnit/Util/Report/Template/scarlet_red.png \
X		PHPUnit/Util/Report/Template/snow.png \
X		PHPUnit/Util/Report/Template/style.css \
X		PHPUnit/Util/Report/Template/testsuite.html \
X		PHPUnit/Util/Report/Template/testsuite_item.html \
X		PHPUnit/Util/Report/Test/Node/Test.php \
X		PHPUnit/Util/Report/Test/Node/TestSuite.php \
X		PHPUnit/Util/Report/Test/Factory.php \
X		PHPUnit/Util/Report/Test/Node.php \
X		PHPUnit/Util/Report/GraphViz.php \
X		PHPUnit/Util/Skeleton/IncompleteTestMethod.tpl \
X		PHPUnit/Util/Skeleton/TestClass.tpl \
X		PHPUnit/Util/Skeleton/TestMethod.tpl \
X		PHPUnit/Util/Skeleton/TestMethodConstraint.tpl \
X		PHPUnit/Util/TestDox/ResultPrinter/HTML.php \
X		PHPUnit/Util/TestDox/ResultPrinter/Text.php \
X		PHPUnit/Util/TestDox/NamePrettifier.php \
X		PHPUnit/Util/TestDox/ResultPrinter.php \
X		PHPUnit/Util/Array.php \
X		PHPUnit/Util/Class.php \
X		PHPUnit/Util/CodeCoverage.php \
X		PHPUnit/Util/ErrorHandler.php \
X		PHPUnit/Util/Fileloader.php \
X		PHPUnit/Util/Filesystem.php \
X		PHPUnit/Util/Filter.php \
X		PHPUnit/Util/FilterIterator.php \
X		PHPUnit/Util/Getopt.php \
X		PHPUnit/Util/PDO.php \
X		PHPUnit/Util/Printer.php \
X		PHPUnit/Util/Report.php \
X		PHPUnit/Util/Skeleton.php \
X		PHPUnit/Util/Template.php \
X		PHPUnit/Util/Test.php \
X		PHPUnit/Util/TestSuiteIterator.php \
X		PHPUnit/Util/Timer.php \
X		PHPUnit/Util/Type.php \
X		PHPUnit/Framework.php
XEXAMPLES=	BankAccount/BankAccount.php \
X		BankAccount/BankAccountTest.php \
X		Money/IMoney.php \
X		Money/Money.php \
X		Money/MoneyBag.php \
X		Money/MoneyTest.php \
X		FailureTest.php
XTESTS=		Extensions/AllTests.php \
X		Extensions/ExceptionTestCaseTest.php \
X		Extensions/OutputTestCaseTest.php \
X		Extensions/PerformanceTestCaseTest.php \
X		Extensions/RepeatedTestTest.php \
X		Extensions/SeleniumTestCaseTest.php \
X		Framework/AllTests.php \
X		Framework/AssertTest.php \
X		Framework/ComparisonFailureTest.php \
X		Framework/ConstraintTest.php \
X		Framework/MockObjectTest.php \
X		Framework/SuiteTest.php \
X		Framework/TestCaseTest.php \
X		Framework/TestImplementorTest.php \
X		Framework/TestListenerTest.php \
X		Runner/AllTests.php \
X		Runner/BaseTestRunnerTest.php \
X		Util/TestDox/AllTests.php \
X		Util/TestDox/NamePrettifierTest.php \
X		Util/AllTests.php \
X		Util/TimerTest.php \
X		_files/AnInterface.php \
X		_files/ClassWithNonPublicAttributes.php \
X		_files/DoubleTestCase.php \
X		_files/Error.php \
X		_files/Failure.php \
X		_files/InheritedTestCase.php \
X		_files/MockRunner.php \
X		_files/NoArgTestCaseTest.php \
X		_files/NoTestCaseClass.php \
X		_files/NoTestCases.php \
X		_files/NonStatic.php \
X		_files/NotPublicTestCase.php \
X		_files/NotVoidTestCase.php \
X		_files/OneTestCase.php \
X		_files/OutputTestCase.php \
X		_files/OverrideTestCase.php \
X		_files/SampleClass.php \
X		_files/SetupFailure.php \
X		_files/Sleep.php \
X		_files/Struct.php \
X		_files/Success.php \
X		_files/TearDownFailure.php \
X		_files/TestIterator.php \
X		_files/ThrowExceptionTestCase.php \
X		_files/ThrowNoExceptionTestCase.php \
X		_files/TornDown.php \
X		_files/TornDown2.php \
X		_files/TornDown3.php \
X		_files/TornDown4.php \
X		_files/TornDown5.php \
X		_files/WasRun.php \
X		AllTests.php \
X		TestConfiguration.php.dist
XSCRIPTFILES=	phpunit
X_EXAMPLESDIR=	PHPUnit/Samples
X_TESTSDIR=	PHPUnit/Tests
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_PEAR_LOG)
XRUN_DEPENDS+=	${PEARDIR}/Log/null.php:${PORTSDIR}/sysutils/pear-Log
X.endif
X
X.if defined(WITH_GRAPHVIZ)
XRUN_DEPENDS+=	${PEARDIR}/Image/GraphViz.php:${PORTSDIR}/graphics/pear-Image_GraphViz
X.endif
X
X.if defined(WITH_XDEBUG)
XRUN_DEPENDS+=	${PREFIX}/lib/php/${PHP_EXT_DIR}/xdebug.so:${PORTSDIR}/devel/php-xdebug
X.endif
X
X.if defined(WITH_PDO_MYSQL)
XUSE_PHP+=	pdo_mysql
X.endif
X
X.if defined(WITH_PDO_SQLITE)
XUSE_PHP+=	pdo_sqlite
X.endif
X
X.if defined(WITH_TOKENIZER)
XUSE_PHP+=	tokenizer
X.endif
X
X.if defined(WITH_JSON)
XUSE_PHP+=	json
X.endif
X
X.include "${PORTSDIR}/devel/pear/bsd.pear.mk"
X
X# The post-install target has already been defined in bsd.pear.mk
Xpost-install-script:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-pear-PHPUnit31/Makefile
echo x - pear-PHPUnit31/distinfo
sed 's/^X//' >pear-PHPUnit31/distinfo << 'END-of-pear-PHPUnit31/distinfo'
XMD5 (PEAR/PHPUnit-3.1.9.tgz) = edaea05178f8b79af8250c93545861d7
XSHA256 (PEAR/PHPUnit-3.1.9.tgz) = 8db4d0272be9490081bcda0adeaf98fb0fdd041e0e751b52ce80ca47c54c1004
XSIZE (PEAR/PHPUnit-3.1.9.tgz) = 116945
END-of-pear-PHPUnit31/distinfo
echo x - pear-PHPUnit31/pkg-descr
sed 's/^X//' >pear-PHPUnit31/pkg-descr << 'END-of-pear-PHPUnit31/pkg-descr'
XPHPUnit is a regression testing framework used by the developer
Xwho implements unit tests in PHP. It is based upon JUnit, which
Xcan be found at http://www.junit.org/.
X
XWWW: http://www.phpunit.de/
END-of-pear-PHPUnit31/pkg-descr
echo c - pear-PHPUnit31/files
mkdir -p pear-PHPUnit31/files > /dev/null 2>&1
echo x - pear-PHPUnit31/files/pear-deinstall.in
sed 's/^X//' >pear-PHPUnit31/files/pear-deinstall.in << 'END-of-pear-PHPUnit31/files/pear-deinstall.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/devel/pear-PHPUnit3/files/pear-deinstall.in,v 1.1 2007/10/29 17:01:20 miwi Exp $
X#
X# Remove package declaration from PEAR's registry and optionally delete
X# a non-standard channel.
X
Xif [ x$2 != xDEINSTALL -a x$2 != xPOST-DEINSTALL ]; then
X    exit
Xfi
XPKG_NAME=${1%%-[0-9._]*}
XPACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
X
XPEAR=${PKG_PREFIX}/bin/pear
XCHANNEL=%%CHANNEL%%
X
Xif [ "$2" = "DEINSTALL" ]; then
X	if [ "x${CHANNEL}" != "x" ]; then
X		${PEAR} uninstall -r -n ${CHANNEL}/${PACKAGE} || true
X	else
X		${PEAR} uninstall -r -n ${PACKAGE} || true
X	fi
Xelse
X	if [ "x${CHANNEL}" != "x" ]; then
X		${PEAR} channel-delete ${CHANNEL}
X	fi
Xfi
END-of-pear-PHPUnit31/files/pear-deinstall.in
echo x - pear-PHPUnit31/files/pear-install.in
sed 's/^X//' >pear-PHPUnit31/files/pear-install.in << 'END-of-pear-PHPUnit31/files/pear-install.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/devel/pear-PHPUnit3/files/pear-install.in,v 1.1 2007/10/29 17:01:20 miwi Exp $
X#
X# Register the package $1 in the port registry and optionally add a
X# non-standard channel.
X
XPREFIX=${PKG_PREFIX:=%%PREFIX%%}
XPEAR=${PREFIX}/bin/pear
XPKGREGDIR=${PREFIX}/share/pear/packages/$1
XCHANNEL=%%CHANNEL%%
X
X[ "x$1" = "x" ] && exit 1
Xif [ "x$2" = "xPOST-INSTALL" ]; then
X	if [ "x${CHANNEL}" != "x" ]; then
X		${PEAR} channel-add http://${CHANNEL}/channel.xml
X	fi
X	${PEAR} install -r -n -f ${PKGREGDIR}/package.xml
Xfi
END-of-pear-PHPUnit31/files/pear-install.in
echo x - pear-PHPUnit31/files/pkg-message.in
sed 's/^X//' >pear-PHPUnit31/files/pkg-message.in << 'END-of-pear-PHPUnit31/files/pkg-message.in'
X
XPost-installation note:
X
XIf you have enabled PHP XDebug support for PHPUnit and you see this
Xmessage during installation:
X
X"phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >= 2.0.0)"
X
Xthen please add the following line to the end of %%PREFIX%%/etc/php.ini:
X
Xzend_extension=/usr/local/lib/php/%%PHP_EXT_DIR%%/xdebug.so
X
END-of-pear-PHPUnit31/files/pkg-message.in
exit
--- pear-PHPUnit-3.1.9.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711151842.lAFIgJ7a096464>