ports/70775: New port: devel/simpletest
Gerrit Beine
tux at pinguru.net
Sat Aug 21 15:50:30 UTC 2004
>Number: 70775
>Category: ports
>Synopsis: New port: devel/simpletest
>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: Sat Aug 21 15:50:30 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Gerrit Beine
>Release: FreeBSD 5.2.1-RELEASE-p9
>Organization:
gerrit.beine at pitcom.de
>Environment:
FreeBSD asus.intern.beine-computer.de 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #2: Sat Aug 14 15:32:41 CEST 2004 root at asus.intern.beine-computer.de:/usr/src/sys/i386/compile/ASUS i386
>Description:
Simpletest is another unit testing framework for PHP.
It supports mock objects, server stubs and web formular tests.
It also contains a PHPUnit adapter pattern.
>How-To-Repeat:
>Fix:
# 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:
#
# simpletest/
# simpletest/Makefile
# simpletest/distinfo
# simpletest/pkg-descr
# simpletest/pkg-plist
#
echo c - simpletest/
mkdir -p simpletest/ > /dev/null 2>&1
echo x - simpletest/Makefile
sed 's/^X//' >simpletest/Makefile << 'END-of-simpletest/Makefile'
X# Ports collection makefile for: simpletest
X# Date created: 21 August 2004
X# Whom: Gerrit Beine (<gerrit.beine at pitcom.de>)
X#
X# $FreeBSD:$
X#
X
XPORTNAME= simpletest
XPORTVERSION= 1.0beta6
XCATEGORIES= devel www
XDISTNAME= php_simple_test_${PORTVERSION}
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= ${PORTNAME}
X
XMAINTAINER= tux at pinguru.net
XCOMMENT= SimpleTest is a testing framework built around test case classes
X
XWRKSRC= ${WRKDIR}/${PORTNAME}
XNO_BUILD= yes
XUSE_PHP= yes
X
X.if !defined(NOPORTDOCS)
XPORTDOCS= HELP_MY_TESTS_DONT_WORK_ANYMORE LICENSE README VERSION
X.endif
X
Xdo-install:
X @${MKDIR} ${DATADIR}
X @${CP} -r ${WRKSRC}/*.php ${DATADIR}
X @${CP} -r ${WRKSRC}/extensions ${DATADIR}
X.if !defined(NOPORTDOCS)
X @${CP} -r ${WRKSRC}/test ${DATADIR}
X @${MKDIR} ${DOCSDIR}
X @for file in ${PORTDOCS}; do \
X ${CP} ${WRKSRC}/$${file} ${DOCSDIR}; \
X done
X @${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-simpletest/Makefile
echo x - simpletest/distinfo
sed 's/^X//' >simpletest/distinfo << 'END-of-simpletest/distinfo'
XMD5 (php_simple_test_1.0beta6.tar.gz) = c11201d7b837c0ff57d18fe5750c5335
XSIZE (php_simple_test_1.0beta6.tar.gz) = 146049
END-of-simpletest/distinfo
echo x - simpletest/pkg-descr
sed 's/^X//' >simpletest/pkg-descr << 'END-of-simpletest/pkg-descr'
XSimple Test for PHP
XThe heart of SimpleTest is a testing framework built around test case classes.
XThese are written as extensions of base test case classes,
Xeach extended with methods that actually contain test code.
X
XIt is a useful replacement for PEAR PHPUnit.
XSee the feature list for more information:
X
XFeature Description
XUnit test case Core test case class and assertions
XHtml display Simplest possible display
XAutoloading of test cases
X Reading a file with test cases and loading them into a group test automatically
XMock objects code generator
X Objects capable of simulating other objects removing test dependencies Done
XServer stubs Mocks without expectations to be used outside of test cases, e.g. for prototyping
XIntegration of other unit testers
X The ability to read and simulate test cases from PHPUnit and PEAR::PhpUnit
XWeb test case Basic pattern matching of fetched pages
XHTML parsing of pages
X Allows link following and title tag matching
XPartial mocks Mocking parts of a class for testing less than a class or for complex simulations
XWeb cookie handling
X Correct handling of cookies when fetching pages
XFollowing redirects
X Page fetching automatically follows 300 redirects
XForm parsing Ability to submit simple forms and read default form values
XCommand line interface
X Test display without the need of a web browser
XExposure of expectation classes
X Can create precise tests with mocks as well as test cases
XXML output and parsing
X Allows multi host testing and the integration of acceptance testing extensions
XCommand line test case
X Allows testing of utilities and file handling
XPHP Documentor compatibility
X Fully generated class level documentation
XBrowser interface
X Exposure of lower level web browser interface for more detailed test cases
XHTTP authentication
X Fetching protected web pages with basic authentication only
XBrowser navigation buttons
X Back, forward and retry
XSSL support Can connect to https: pages
XProxy support Can connect via. common proxies
X
XWWW: http://www.lastcraft.com/simple_test.php
X
END-of-simpletest/pkg-descr
echo x - simpletest/pkg-plist
sed 's/^X//' >simpletest/pkg-plist << 'END-of-simpletest/pkg-plist'
X%%DATADIR%%/errors.php
X%%DATADIR%%/options.php
X%%DATADIR%%/runner.php
X%%DATADIR%%/dumper.php
X%%DATADIR%%/expectation.php
X%%DATADIR%%/socket.php
X%%DATADIR%%/url.php
X%%DATADIR%%/http.php
X%%DATADIR%%/authentication.php
X%%DATADIR%%/user_agent.php
X%%DATADIR%%/browser.php
X%%DATADIR%%/parser.php
X%%DATADIR%%/tag.php
X%%DATADIR%%/frames.php
X%%DATADIR%%/page.php
X%%DATADIR%%/remote.php
X%%DATADIR%%/reporter.php
X%%DATADIR%%/mock_objects.php
X%%DATADIR%%/simple_test.php
X%%DATADIR%%/unit_tester.php
X%%DATADIR%%/web_tester.php
X%%DATADIR%%/shell_tester.php
X%%DATADIR%%/xml.php
X%%DATADIR%%/extensions/pear_test_case.php
X%%DATADIR%%/extensions/phpunit_test_case.php
X%%DATADIR%%/test/all_tests.php
X%%DATADIR%%/test/unit_tests.php
X%%DATADIR%%/test/acceptance_test.php
X%%DATADIR%%/test/errors_test.php
X%%DATADIR%%/test/options_test.php
X%%DATADIR%%/test/dumper_test.php
X%%DATADIR%%/test/expectation_test.php
X%%DATADIR%%/test/adapter_test.php
X%%DATADIR%%/test/socket_test.php
X%%DATADIR%%/test/url_test.php
X%%DATADIR%%/test/http_test.php
X%%DATADIR%%/test/authentication_test.php
X%%DATADIR%%/test/user_agent_test.php
X%%DATADIR%%/test/browser_test.php
X%%DATADIR%%/test/parser_test.php
X%%DATADIR%%/test/tag_test.php
X%%DATADIR%%/test/frames_test.php
X%%DATADIR%%/test/page_test.php
X%%DATADIR%%/test/remote_test.php
X%%DATADIR%%/test/simple_mock_test.php
X%%DATADIR%%/test/visual_test.php
X%%DATADIR%%/test/shell_test.php
X%%DATADIR%%/test/shell_tester_test.php
X%%DATADIR%%/test/xml_test.php
X%%DATADIR%%/test/live_test.php
X%%DATADIR%%/test/real_sites_test.php
X%%PORTDOCS%%%%DOCSDIR%%/index.html
X%%PORTDOCS%%%%DOCSDIR%%/overview.html
X%%PORTDOCS%%%%DOCSDIR%%/unit_test_documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/group_test_documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/reporter_documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/server_stubs_documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/mock_objects_documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/partial_mocks_documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/expectation_documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/web_tester_documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/form_testing_documentation.html
X at dirrm %%DATADIR%%/test
X at dirrm %%DATADIR%%/extensions
X at dirrm %%DATADIR%%/
X
END-of-simpletest/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list