|
From: <pp...@us...> - 2012-01-09 10:06:12
|
Revision: 2041
http://simpletest.svn.sourceforge.net/simpletest/?rev=2041&view=rev
Author: pp11
Date: 2012-01-09 10:06:04 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
New architecture pour SimpleTest's packages
Modified Paths:
--------------
simpletest/trunk/packages/simpletest.org/index.php
Added Paths:
-----------
simpletest/trunk/packages/coverage/
simpletest/trunk/packages/coverage/generate_coverage.sh
simpletest/trunk/packages/lastcraft/
simpletest/trunk/packages/lastcraft/lastcraft.xslt
simpletest/trunk/packages/lastcraft/make_lastcraft_docs.sh
simpletest/trunk/packages/lastcraft/site_map.xml
simpletest/trunk/packages/lastcraft/transform_all_lastcraft.php
simpletest/trunk/packages/pear/
simpletest/trunk/packages/pear/package.xml
simpletest/trunk/packages/phing/
simpletest/trunk/packages/phing/extension.xml
simpletest/trunk/packages/phpdoc/
simpletest/trunk/packages/phpdoc/make_phpdoc_docs.sh
simpletest/trunk/packages/phpdoc/phpdoc_docs.xslt
simpletest/trunk/packages/phpdoc/simpletest.ini
simpletest/trunk/packages/sourceforge/
simpletest/trunk/packages/sourceforge/build_tarball.sh
simpletest/trunk/packages/sourceforge/bundled_docs.xslt
simpletest/trunk/packages/sourceforge/bundled_map.xml
simpletest/trunk/packages/sourceforge/make_bundled_docs.sh
Removed Paths:
-------------
simpletest/trunk/packages/build_tarball.sh
simpletest/trunk/packages/bundled_docs.xslt
simpletest/trunk/packages/bundled_map.xml
simpletest/trunk/packages/extension.xml
simpletest/trunk/packages/generate_coverage.sh
simpletest/trunk/packages/lastcraft.xslt
simpletest/trunk/packages/make_bundled_docs.sh
simpletest/trunk/packages/make_lastcraft_docs.sh
simpletest/trunk/packages/make_phpdoc_docs.sh
simpletest/trunk/packages/phpdoc_docs.xslt
simpletest/trunk/packages/simpletest.ini
simpletest/trunk/packages/site_map.xml
simpletest/trunk/packages/transform_all_lastcraft.php
Deleted: simpletest/trunk/packages/build_tarball.sh
===================================================================
--- simpletest/trunk/packages/build_tarball.sh 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/build_tarball.sh 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,136 +0,0 @@
-#!/bin/bash
-
-# Builds project release.
-#
-cd ../..
-
-NAME=simpletest_`cat simpletest/VERSION`.tar.gz
-FILES=(simpletest/README \
- simpletest/VERSION \
- simpletest/LICENSE \
- simpletest/HELP_MY_TESTS_DONT_WORK_ANYMORE \
- simpletest/authentication.php \
- simpletest/autorun.php \
- simpletest/browser.php \
- simpletest/collector.php \
- simpletest/compatibility.php \
- simpletest/cookies.php \
- simpletest/default_reporter.php \
- simpletest/detached.php \
- simpletest/dumper.php \
- simpletest/eclipse.php \
- simpletest/encoding.php \
- simpletest/errors.php \
- simpletest/exceptions.php \
- simpletest/expectation.php \
- simpletest/form.php \
- simpletest/frames.php \
- simpletest/http.php \
- simpletest/invoker.php \
- simpletest/mock_objects.php \
- simpletest/page.php \
- simpletest/php_parser.php \
- simpletest/reflection_php4.php \
- simpletest/reflection_php5.php \
- simpletest/remote.php \
- simpletest/reporter.php \
- simpletest/scorer.php \
- simpletest/selector.php \
- simpletest/shell_tester.php \
- simpletest/simpletest.php \
- simpletest/socket.php \
- simpletest/tag.php \
- simpletest/test_case.php \
- simpletest/tidy_parser.php \
- simpletest/unit_tester.php \
- simpletest/url.php \
- simpletest/user_agent.php \
- simpletest/web_tester.php \
- simpletest/xml.php \
- simpletest/extensions/pear_test_case.php \
- simpletest/extensions/testdox.php \
- simpletest/extensions/testdox/test.php \
- simpletest/test/acceptance_test.php \
- simpletest/test/adapter_test.php \
- simpletest/test/all_tests.php \
- simpletest/test/authentication_test.php \
- simpletest/test/bad_test_suite.php \
- simpletest/test/browser_test.php \
- simpletest/test/collector_test.php \
- simpletest/test/command_line_test.php \
- simpletest/test/compatibility_test.php \
- simpletest/test/cookies_test.php \
- simpletest/test/detached_test.php \
- simpletest/test/dumper_test.php \
- simpletest/test/eclipse_test.php \
- simpletest/test/encoding_test.php \
- simpletest/test/errors_test.php \
- simpletest/test/exceptions_test.php \
- simpletest/test/expectation_test.php \
- simpletest/test/form_test.php \
- simpletest/test/frames_test.php \
- simpletest/test/http_test.php \
- simpletest/test/interfaces_test.php \
- simpletest/test/interfaces_test_php5_1.php \
- simpletest/test/live_test.php \
- simpletest/test/mock_objects_test.php \
- simpletest/test/page_test.php \
- simpletest/test/parse_error_test.php \
- simpletest/test/php_parser_test.php \
- simpletest/test/parsing_test.php \
- simpletest/test/reflection_php4_test.php \
- simpletest/test/reflection_php5_test.php \
- simpletest/test/remote_test.php \
- simpletest/test/shell_test.php \
- simpletest/test/shell_tester_test.php \
- simpletest/test/simpletest_test.php \
- simpletest/test/socket_test.php \
- simpletest/test/tag_test.php \
- simpletest/test/test_with_parse_error.php \
- simpletest/test/unit_tests.php \
- simpletest/test/unit_tester_test.php \
- simpletest/test/autorun_test.php \
- simpletest/test/url_test.php \
- simpletest/test/user_agent_test.php \
- simpletest/test/visual_test.php \
- simpletest/test/web_tester_test.php \
- simpletest/test/xml_test.php \
- simpletest/test/support/collector/collectable.1 \
- simpletest/test/support/collector/collectable.2 \
- simpletest/test/support/upload_sample.txt \
- simpletest/test/support/supplementary_upload_sample.txt \
- simpletest/test/support/latin1_sample \
- simpletest/test/support/spl_examples.php \
- simpletest/test/support/empty_test_file.php \
- simpletest/test/support/test1.php \
- simpletest/test/support/failing_test.php \
- simpletest/test/support/passing_test.php \
- simpletest/test/site/file.html \
- simpletest/docs/en/docs.css \
- simpletest/docs/en/index.html \
- simpletest/docs/en/overview.html \
- simpletest/docs/en/unit_test_documentation.html \
- simpletest/docs/en/group_test_documentation.html \
- simpletest/docs/en/mock_objects_documentation.html \
- simpletest/docs/en/partial_mocks_documentation.html \
- simpletest/docs/en/reporter_documentation.html \
- simpletest/docs/en/expectation_documentation.html \
- simpletest/docs/en/web_tester_documentation.html \
- simpletest/docs/en/form_testing_documentation.html \
- simpletest/docs/en/authentication_documentation.html \
- simpletest/docs/en/browser_documentation.html \
- simpletest/docs/fr/docs.css \
- simpletest/docs/fr/index.html \
- simpletest/docs/fr/overview.html \
- simpletest/docs/fr/unit_test_documentation.html \
- simpletest/docs/fr/group_test_documentation.html \
- simpletest/docs/fr/mock_objects_documentation.html \
- simpletest/docs/fr/partial_mocks_documentation.html \
- simpletest/docs/fr/reporter_documentation.html \
- simpletest/docs/fr/expectation_documentation.html \
- simpletest/docs/fr/web_tester_documentation.html \
- simpletest/docs/fr/form_testing_documentation.html \
- simpletest/docs/fr/authentication_documentation.html \
- simpletest/docs/fr/browser_documentation.html)
-
-tar -zcf $NAME ${FILES[*]}
Deleted: simpletest/trunk/packages/bundled_docs.xslt
===================================================================
--- simpletest/trunk/packages/bundled_docs.xslt 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/bundled_docs.xslt 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,246 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!-- $Id$ -->
-
- <xsl:output method="html" indent="yes" />
- <xsl:preserve-space elements="*"/>
-
- <xsl:template match="/">
- <html>
- <xsl:call-template name="head"/>
- <xsl:call-template name="body"/>
- </html>
- </xsl:template>
-
- <xsl:template name="head">
- <head>
- <title><xsl:value-of select="//long_title"/></title>
- <link rel="stylesheet" type="text/css" href="docs.css" title="Styles" />
- </head>
- </xsl:template>
-
- <xsl:template name="body">
- <body>
- <xsl:call-template name="menu"/>
- <xsl:call-template name="masthead"/>
- <xsl:call-template name="internal_links"/>
- <div class="content">
- <xsl:apply-templates select="//content/node()"/>
- </div>
- <xsl:call-template name="external_links"/>
- <xsl:call-template name="menu"/>
- <xsl:call-template name="copyright"/>
- </body>
- </xsl:template>
-
- <xsl:template name="menu">
- <div class="menu_back">
- <div class="menu">
- <xsl:variable name="map" select="document('bundled_map.xml')/page"/>
- <xsl:call-template name="menu_item">
- <xsl:with-param name="here" select="/page/@here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- <xsl:call-template name="menu_layer">
- <xsl:with-param name="here" select="/page/@here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- </div>
- </div>
- </xsl:template>
-
- <xsl:template name="find_here">
- <xsl:param name="here"/>
- <xsl:param name="map"/>
- <xsl:choose>
- <xsl:when test="$map/@title = $here">
- <xsl:value-of select="$here"/>
- </xsl:when>
- <xsl:when test="count($map/page) = 0"></xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$map/page">
- <xsl:call-template name="find_here">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="."/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="menu_item">
- <xsl:param name="here"/>
- <xsl:param name="map"/>
- <xsl:choose>
- <xsl:when test="$map/@title = $here">
- <span class="chosen"><xsl:value-of select="$map/@title"/></span>
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$map/@file"/></xsl:attribute>
- <xsl:value-of select="$map/@title"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="menu_layer">
- <xsl:param name="here"/>
- <xsl:param name="map"/>
- <xsl:if test="$map/page">
- <xsl:for-each select="$map/page">
- |
- <xsl:call-template name="show_menu_entry">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="."/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:if>
- </xsl:template>
-
- <xsl:template name="show_menu_entry">
- <xsl:param name="here"/>
- <xsl:param name="map"/>
- <xsl:call-template name="menu_item">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- <xsl:variable name="is_in">
- <xsl:call-template name="find_here">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$is_in = $here">
- <xsl:call-template name="menu_layer">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$map/page">
- <br/>(<xsl:value-of select="count(page) + 1"/><xsl:text> pages)</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="masthead">
- <h1><xsl:value-of select="//page/@title"/></h1>
- </xsl:template>
-
- <xsl:template name="internal_links">
- This page...
- <ul>
- <xsl:apply-templates select="//internal/link" mode="links"/>
- </ul>
- </xsl:template>
-
- <xsl:template name="external_links">
- References and related information...
- <ul>
- <xsl:apply-templates select="//external/link" mode="links"/>
- </ul>
- </xsl:template>
-
- <xsl:template name="copyright">
- <div class="copyright">
- Copyright<br/>Marcus Baker 2006
- </div>
- </xsl:template>
-
- <xsl:template match="php">
- <pre>
- <xsl:call-template name="preserve_strong">
- <xsl:with-param name="raw" select="."/>
- </xsl:call-template>
- </pre>
- </xsl:template>
-
- <xsl:template match="code">
- <span class="new_code">
- <xsl:apply-templates/>
- </span>
- </xsl:template>
-
- <xsl:template match="sh">
- <pre class="shell">
- <xsl:call-template name="preserve_strong">
- <xsl:with-param name="raw" select="."/>
- </xsl:call-template>
- </pre>
- </xsl:template>
-
- <xsl:template match="c">
- <pre>
- <xsl:call-template name="preserve_strong">
- <xsl:with-param name="raw" select="."/>
- </xsl:call-template>
- </pre>
- </xsl:template>
-
- <xsl:template match="file">
- <pre class="file">
- <xsl:apply-templates/>
- </pre>
- </xsl:template>
-
- <xsl:template match="section">
- <h2>
- <a class="target">
- <xsl:attribute name="name"><xsl:value-of select="@name" /></xsl:attribute>
- </a>
- <xsl:value-of select="@title" />
- </h2>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="introduction">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="news">
- </xsl:template>
-
- <xsl:template match="a">
- <xsl:copy>
- <xsl:for-each select="@class|@name|@href">
- <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:for-each select="@local">
- <xsl:attribute name="href">
- <xsl:value-of select="."/><xsl:text>.html</xsl:text>
- </xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="*">
- <xsl:copy>
- <xsl:for-each select="@*">
- <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="*" mode="links">
- <li><xsl:apply-templates/></li>
- </xsl:template>
-
- <xsl:template name="preserve_strong">
- <xsl:param name="raw"/>
- <xsl:choose>
- <xsl:when test="contains($raw, '<strong>') and contains($raw, '</strong>')">
- <xsl:value-of select="substring-before($raw, '<strong>')"/>
- <strong>
- <xsl:value-of select="substring-before(substring-after($raw, '<strong>'), '</strong>')"/>
- </strong>
- <xsl:call-template name="preserve_strong">
- <xsl:with-param name="raw" select="substring-after($raw, '</strong>')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$raw"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
Deleted: simpletest/trunk/packages/bundled_map.xml
===================================================================
--- simpletest/trunk/packages/bundled_map.xml 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/bundled_map.xml 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,14 +0,0 @@
-<?xml version="1.0"?>
-<page title="SimpleTest" file="index.html">
- <page title="Overview" file="overview.html"/>
- <page title="Unit tester" file="unit_test_documentation.html"/>
- <page title="Group tests" file="group_test_documentation.html"/>
- <page title="Mock objects" file="mock_objects_documentation.html"/>
- <page title="Partial mocks" file="partial_mocks_documentation.html"/>
- <page title="Reporting" file="reporter_documentation.html"/>
- <page title="Expectations" file="expectation_documentation.html"/>
- <page title="Web tester" file="web_tester_documentation.html"/>
- <page title="Testing forms" file="form_testing_documentation.html"/>
- <page title="Authentication" file="authentication_documentation.html"/>
- <page title="Scriptable browser" file="browser_documentation.html"/>
-</page>
Copied: simpletest/trunk/packages/coverage/generate_coverage.sh (from rev 2036, simpletest/trunk/packages/generate_coverage.sh)
===================================================================
--- simpletest/trunk/packages/coverage/generate_coverage.sh (rev 0)
+++ simpletest/trunk/packages/coverage/generate_coverage.sh 2012-01-09 10:06:04 UTC (rev 2041)
@@ -0,0 +1,15 @@
+#!/bin/bash
+cd ..
+php ./extensions/coverage/bin/php-coverage-open.php \
+ --exclude='.*/test/.*' \
+ --exclude='.*DB.common.php$' \
+ --exclude='.*sqlite.php$' \
+ --exclude='.*unit_tests.php$'\
+ --exclude='.*PEAR.php$'
+
+# run all tests
+php -d auto_prepend_file=./extensions/coverage/autocoverage.php -f test/unit_tests.php
+php -d auto_prepend_file=./extensions/coverage/autocoverage.php -f extensions/coverage/test/test.php
+
+php ./extensions/coverage/bin/php-coverage-close.php
+php ./extensions/coverage/bin/php-coverage-report.php
Deleted: simpletest/trunk/packages/extension.xml
===================================================================
--- simpletest/trunk/packages/extension.xml 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/extension.xml 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,40 +0,0 @@
-<project name="simpletest" default="package" basedir="..">
-
- <target name="info">
- <echo msg="Builds a packaged release from SimpleTest extension source" />
- </target>
-
- <input propertyname="ext_name" promptChar=":">Name of the extension to build</input>
-
- <target name="package">
- <mkdir dir="extensions/test" />
- <copy todir="extensions/test">
- <filterchain>
- <replaceregexp>
- <regexp pattern="dirname\(__FILE__\)\s\.\s'\/\.\.\/\.\.\/\.\.\/autorun.php'"
- replace="'simpletest/autorun.php'"
- ignoreCase="false"/>
- <regexp pattern="\/\.\.\/\.\.\/\.\.\/extensions\/"
- replace="/../"
- ignoreCase="false"/>
- </replaceregexp>
- </filterchain>
- <fileset dir="test/extensions/${ext_name}">
- <include name="**/*" />
- </fileset>
- </copy>
- <zip destfile="${ext_name}.zip">
- <fileset dir="extensions">
- <include name="${ext_name}.php" />
- </fileset>
- <fileset dir="extensions">
- <include name="${ext_name}/**/*" />
- </fileset>
- <fileset dir="extensions">
- <include name="test/**" />
- </fileset>
- </zip>
- <delete dir="extensions/test" />
- </target>
-
-</project>
\ No newline at end of file
Deleted: simpletest/trunk/packages/generate_coverage.sh
===================================================================
--- simpletest/trunk/packages/generate_coverage.sh 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/generate_coverage.sh 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,15 +0,0 @@
-#!/bin/bash
-cd ..
-php ./extensions/coverage/bin/php-coverage-open.php \
- --exclude='.*/test/.*' \
- --exclude='.*DB.common.php$' \
- --exclude='.*sqlite.php$' \
- --exclude='.*unit_tests.php$'\
- --exclude='.*PEAR.php$'
-
-# run all tests
-php -d auto_prepend_file=./extensions/coverage/autocoverage.php -f test/unit_tests.php
-php -d auto_prepend_file=./extensions/coverage/autocoverage.php -f extensions/coverage/test/test.php
-
-php ./extensions/coverage/bin/php-coverage-close.php
-php ./extensions/coverage/bin/php-coverage-report.php
Copied: simpletest/trunk/packages/lastcraft/lastcraft.xslt (from rev 2036, simpletest/trunk/packages/lastcraft.xslt)
===================================================================
--- simpletest/trunk/packages/lastcraft/lastcraft.xslt (rev 0)
+++ simpletest/trunk/packages/lastcraft/lastcraft.xslt 2012-01-09 10:06:04 UTC (rev 2041)
@@ -0,0 +1,302 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <!-- $Id$ -->
+
+ <xsl:output method="html" indent="yes" />
+ <xsl:preserve-space elements="*"/>
+
+ <xsl:template match="/">
+ <html>
+ <xsl:call-template name="head"/>
+ <xsl:call-template name="body"/>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="head">
+ <head>
+ <title><xsl:value-of select="//long_title"/></title>
+ <link rel="stylesheet" type="text/css" href="styles/lastcraft.css" title="Last Craft styles" />
+ <xsl:call-template name="ie_style_fixes"/>
+ <link rel="Shortcut icon" href="images/lc.ico" />
+ <xsl:call-template name="meta"/>
+ </head>
+ </xsl:template>
+
+ <xsl:template name="ie_style_fixes">
+ <style type="text/css">
+ <![CDATA[
+ <?php
+ $is_ie = preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT']) ||
+ preg_match('/msie/i', $HTTP_SERVER_VARS['HTTP_USER_AGENT']);
+ if ($is_ie) {
+ print "div.menu_back {position: absolute}\n";
+ print "div.iconic {position: absolute}\n";
+ print "div.copyright {position: absolute}\n";
+ print "ul {padding-left: 20px}\n";
+ print "body {font-size: 80%}\n";
+ print "div.menu {margin: 0px; font-size: 80%}\n";
+ print "div.menu_back {padding: 0px}\n";
+ print "div.card {margin: 0px; font-size: 80%}\n";
+ print "div.card_back {padding: 0px}\n";
+ }
+ ?>
+ ]]>
+ </style>
+ </xsl:template>
+
+ <xsl:template name="meta">
+ <meta name="author" content="Marcus Baker" />
+ <meta name="description">
+ <xsl:attribute name="content">
+ <xsl:value-of select="normalize-space(/page/meta/description)"/>
+ </xsl:attribute>
+ </meta>
+ <meta name="keywords">
+ <xsl:attribute name="content">
+ <xsl:value-of select="normalize-space(/page/meta/keywords)"/>
+ </xsl:attribute>
+ </meta>
+ </xsl:template>
+
+ <xsl:template name="body">
+ <body background="images/graph_paper.png">
+ <xsl:call-template name="logo"/>
+ <xsl:call-template name="menu"/>
+ <xsl:call-template name="masthead"/>
+ <div class="content">
+ <xsl:apply-templates select="//content/node()"/>
+ </div>
+ <xsl:call-template name="copyright"/>
+ </body>
+ </xsl:template>
+
+ <xsl:template name="logo">
+ <div class="iconic">
+ <a class="lightly" href="http://www.lastcraft.com/">
+ <img class="lightly" alt="LastCraft Home Page" src="images/logo.jpg"/>
+ </a>
+ </div>
+ </xsl:template>
+
+ <xsl:template name="menu">
+ <div class="menu_back">
+ <div class="menu">
+ <xsl:variable name="map" select="document('site_map.xml')/page"/>
+ <h2>
+ <xsl:call-template name="menu_item">
+ <xsl:with-param name="here" select="/page/@here"/>
+ <xsl:with-param name="map" select="$map"/>
+ </xsl:call-template>
+ </h2>
+ <xsl:call-template name="menu_layer">
+ <xsl:with-param name="here" select="/page/@here"/>
+ <xsl:with-param name="map" select="$map"/>
+ </xsl:call-template>
+ </div>
+ </div>
+ </xsl:template>
+
+ <xsl:template name="find_here">
+ <xsl:param name="here"/>
+ <xsl:param name="map"/>
+ <xsl:choose>
+ <xsl:when test="$map/@title = $here">
+ <xsl:value-of select="$here"/>
+ </xsl:when>
+ <xsl:when test="count($map/page) = 0"></xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="$map/page">
+ <xsl:call-template name="find_here">
+ <xsl:with-param name="here" select="$here"/>
+ <xsl:with-param name="map" select="."/>
+ </xsl:call-template>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="menu_item">
+ <xsl:param name="here"/>
+ <xsl:param name="map"/>
+ <xsl:choose>
+ <xsl:when test="$map/@title = $here">
+ <span class="chosen"><xsl:value-of select="$map/@title"/></span>
+ </xsl:when>
+ <xsl:otherwise>
+ <a>
+ <xsl:attribute name="href"><xsl:value-of select="$map/@file"/></xsl:attribute>
+ <xsl:value-of select="$map/@title"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="menu_layer">
+ <xsl:param name="here"/>
+ <xsl:param name="map"/>
+ <xsl:if test="$map/page">
+ <ul>
+ <xsl:for-each select="$map/page">
+ <li>
+ <xsl:call-template name="show_menu_entry">
+ <xsl:with-param name="here" select="$here"/>
+ <xsl:with-param name="map" select="."/>
+ </xsl:call-template>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="show_menu_entry">
+ <xsl:param name="here"/>
+ <xsl:param name="map"/>
+ <xsl:call-template name="menu_item">
+ <xsl:with-param name="here" select="$here"/>
+ <xsl:with-param name="map" select="$map"/>
+ </xsl:call-template>
+ <xsl:variable name="is_in">
+ <xsl:call-template name="find_here">
+ <xsl:with-param name="here" select="$here"/>
+ <xsl:with-param name="map" select="$map"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$is_in = $here">
+ <xsl:call-template name="menu_layer">
+ <xsl:with-param name="here" select="$here"/>
+ <xsl:with-param name="map" select="$map"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$map/page">
+ <br/>(<xsl:value-of select="count(page) + 1"/><xsl:text> pages)</xsl:text>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="masthead">
+ <div class="card_back">
+ <div class="card">
+ <h1><xsl:value-of select="//page/@title"/></h1>
+ <div class="in">
+ <xsl:call-template name="internal_links"/>
+ </div>
+ <div class="out">
+ <xsl:call-template name="external_links"/>
+ </div>
+ </div>
+ </div>
+ </xsl:template>
+
+ <xsl:template name="internal_links">
+ This page...
+ <ul>
+ <xsl:apply-templates select="//internal/link" mode="links"/>
+ </ul>
+ </xsl:template>
+
+ <xsl:template name="external_links">
+ Related...
+ <ul>
+ <xsl:apply-templates select="//external/link" mode="links"/>
+ </ul>
+ </xsl:template>
+
+ <xsl:template name="copyright">
+ <div class="copyright">
+ Copyright<br/><a href="mailto:ma...@la...">Marcus Baker</a> 2003
+ </div>
+ </xsl:template>
+
+ <xsl:template match="php">
+ <pre>
+ <xsl:call-template name="preserve_strong">
+ <xsl:with-param name="raw" select="."/>
+ </xsl:call-template>
+ </pre>
+ </xsl:template>
+
+ <xsl:template match="code">
+ <span class="new_code">
+ <xsl:apply-templates/>
+ </span>
+ </xsl:template>
+
+ <xsl:template match="sh">
+ <pre class="shell">
+ <xsl:call-template name="preserve_strong">
+ <xsl:with-param name="raw" select="."/>
+ </xsl:call-template>
+ </pre>
+ </xsl:template>
+
+ <xsl:template match="file">
+ <pre class="file">
+ <xsl:apply-templates/>
+ </pre>
+ </xsl:template>
+
+ <xsl:template match="section">
+ <p>
+ <a class="target">
+ <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
+ <h2><xsl:value-of select="@title"/></h2>
+ </a>
+ </p>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="introduction">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="news">
+ <p style="margin-right: 10%; margin-left: 10%;">
+ <span style="color: red;">News:</span>
+ <xsl:apply-templates/>
+ </p>
+ </xsl:template>
+
+ <xsl:template match="a">
+ <xsl:copy>
+ <xsl:for-each select="@class|@name|@href">
+ <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute>
+ </xsl:for-each>
+ <xsl:for-each select="@local">
+ <xsl:attribute name="href">
+ <xsl:value-of select="."/><xsl:text>.php</xsl:text>
+ </xsl:attribute>
+ </xsl:for-each>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="*">
+ <xsl:copy>
+ <xsl:for-each select="@*">
+ <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute>
+ </xsl:for-each>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="*" mode="links">
+ <li><xsl:apply-templates/></li>
+ </xsl:template>
+
+ <xsl:template name="preserve_strong">
+ <xsl:param name="raw"/>
+ <xsl:choose>
+ <xsl:when test="contains($raw, '<strong>') and contains($raw, '</strong>')">
+ <xsl:value-of select="substring-before($raw, '<strong>')"/>
+ <strong>
+ <xsl:value-of select="substring-before(substring-after($raw, '<strong>'), '</strong>')"/>
+ </strong>
+ <xsl:call-template name="preserve_strong">
+ <xsl:with-param name="raw" select="substring-after($raw, '</strong>')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise><xsl:value-of select="$raw"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
Copied: simpletest/trunk/packages/lastcraft/make_lastcraft_docs.sh (from rev 2036, simpletest/trunk/packages/make_lastcraft_docs.sh)
===================================================================
--- simpletest/trunk/packages/lastcraft/make_lastcraft_docs.sh (rev 0)
+++ simpletest/trunk/packages/lastcraft/make_lastcraft_docs.sh 2012-01-09 10:06:04 UTC (rev 2041)
@@ -0,0 +1,2 @@
+#!/bin/bash
+php transform_all_lastcraft.php lastcraft.xslt ../docs/source/en/ ../docs/lastcraft/
Copied: simpletest/trunk/packages/lastcraft/site_map.xml (from rev 2036, simpletest/trunk/packages/site_map.xml)
===================================================================
--- simpletest/trunk/packages/lastcraft/site_map.xml (rev 0)
+++ simpletest/trunk/packages/lastcraft/site_map.xml 2012-01-09 10:06:04 UTC (rev 2041)
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<page title="Last Craft" file="index.php">
+ <page title="SimpleTest" file="simple_test.php">
+ <page title="Overview" file="overview.php"/>
+ <page title="Unit tester" file="unit_test_documentation.php"/>
+ <page title="Group tests" file="group_test_documentation.php"/>
+ <page title="Mock objects" file="mock_objects_documentation.php"/>
+ <page title="Partial mocks" file="partial_mocks_documentation.php"/>
+ <page title="Reporting" file="reporter_documentation.php"/>
+ <page title="Expectations" file="expectation_documentation.php"/>
+ <page title="Web tester" file="web_tester_documentation.php"/>
+ <page title="Testing forms" file="form_testing_documentation.php"/>
+ <page title="Authentication" file="authentication_documentation.php"/>
+ <page title="Scriptable browser" file="browser_documentation.php"/>
+ </page>
+ <page title="Cgreen" file="cgreen.php">
+ <page title="Cgreen test suites" file="cgreen_suites.php"/>
+ <page title="Mocking functions" file="mock_callbacks.php"/>
+ <page title="Cgreen reporting" file="cgreen_reporter.php"/>
+ </page>
+ <page title="Fakemail" file="fakemail.php"/>
+ <page title="PHP unit testing" file="first_test_tutorial.php">
+ <page title="Grouping tests" file="group_test_tutorial.php"/>
+ <page title="Taking control" file="gain_control_tutorial.php"/>
+ <page title="Reusing cases" file="subclass_tutorial.php"/>
+ <page title="Showing passes" file="display_subclass_tutorial.php"/>
+ <page title="Using mock objects" file="mock_objects_tutorial.php"/>
+ <page title="Boundary classes" file="boundary_classes_tutorial.php"/>
+ <page title="Top down testing" file="improving_design_tutorial.php"/>
+ </page>
+ <page title="Blog" file="blog/"/>
+ <page title="About" file="about.php"/>
+</page>
\ No newline at end of file
Copied: simpletest/trunk/packages/lastcraft/transform_all_lastcraft.php (from rev 2036, simpletest/trunk/packages/transform_all_lastcraft.php)
===================================================================
--- simpletest/trunk/packages/lastcraft/transform_all_lastcraft.php (rev 0)
+++ simpletest/trunk/packages/lastcraft/transform_all_lastcraft.php 2012-01-09 10:06:04 UTC (rev 2041)
@@ -0,0 +1,17 @@
+<?php
+ $transform = $argv[1];
+ $source_path = $argv[2];
+ $destination_path = $argv[3];
+ $dir = opendir($source_path);
+ while (($file = readdir($dir)) !== false) {
+ if (! preg_match('/\.xml$/', $file)) {
+ continue;
+ }
+ $source = $source_path . $file;
+ $destination = $destination_path .
+ preg_replace('/\.xml$/', '.php', basename($source));
+ $command = "xsltproc $transform $source > $destination\n";
+ `$command`;
+ }
+ closedir($dir);
+?>
\ No newline at end of file
Deleted: simpletest/trunk/packages/lastcraft.xslt
===================================================================
--- simpletest/trunk/packages/lastcraft.xslt 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/lastcraft.xslt 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,302 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!-- $Id$ -->
-
- <xsl:output method="html" indent="yes" />
- <xsl:preserve-space elements="*"/>
-
- <xsl:template match="/">
- <html>
- <xsl:call-template name="head"/>
- <xsl:call-template name="body"/>
- </html>
- </xsl:template>
-
- <xsl:template name="head">
- <head>
- <title><xsl:value-of select="//long_title"/></title>
- <link rel="stylesheet" type="text/css" href="styles/lastcraft.css" title="Last Craft styles" />
- <xsl:call-template name="ie_style_fixes"/>
- <link rel="Shortcut icon" href="images/lc.ico" />
- <xsl:call-template name="meta"/>
- </head>
- </xsl:template>
-
- <xsl:template name="ie_style_fixes">
- <style type="text/css">
- <![CDATA[
- <?php
- $is_ie = preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT']) ||
- preg_match('/msie/i', $HTTP_SERVER_VARS['HTTP_USER_AGENT']);
- if ($is_ie) {
- print "div.menu_back {position: absolute}\n";
- print "div.iconic {position: absolute}\n";
- print "div.copyright {position: absolute}\n";
- print "ul {padding-left: 20px}\n";
- print "body {font-size: 80%}\n";
- print "div.menu {margin: 0px; font-size: 80%}\n";
- print "div.menu_back {padding: 0px}\n";
- print "div.card {margin: 0px; font-size: 80%}\n";
- print "div.card_back {padding: 0px}\n";
- }
- ?>
- ]]>
- </style>
- </xsl:template>
-
- <xsl:template name="meta">
- <meta name="author" content="Marcus Baker" />
- <meta name="description">
- <xsl:attribute name="content">
- <xsl:value-of select="normalize-space(/page/meta/description)"/>
- </xsl:attribute>
- </meta>
- <meta name="keywords">
- <xsl:attribute name="content">
- <xsl:value-of select="normalize-space(/page/meta/keywords)"/>
- </xsl:attribute>
- </meta>
- </xsl:template>
-
- <xsl:template name="body">
- <body background="images/graph_paper.png">
- <xsl:call-template name="logo"/>
- <xsl:call-template name="menu"/>
- <xsl:call-template name="masthead"/>
- <div class="content">
- <xsl:apply-templates select="//content/node()"/>
- </div>
- <xsl:call-template name="copyright"/>
- </body>
- </xsl:template>
-
- <xsl:template name="logo">
- <div class="iconic">
- <a class="lightly" href="http://www.lastcraft.com/">
- <img class="lightly" alt="LastCraft Home Page" src="images/logo.jpg"/>
- </a>
- </div>
- </xsl:template>
-
- <xsl:template name="menu">
- <div class="menu_back">
- <div class="menu">
- <xsl:variable name="map" select="document('site_map.xml')/page"/>
- <h2>
- <xsl:call-template name="menu_item">
- <xsl:with-param name="here" select="/page/@here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- </h2>
- <xsl:call-template name="menu_layer">
- <xsl:with-param name="here" select="/page/@here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- </div>
- </div>
- </xsl:template>
-
- <xsl:template name="find_here">
- <xsl:param name="here"/>
- <xsl:param name="map"/>
- <xsl:choose>
- <xsl:when test="$map/@title = $here">
- <xsl:value-of select="$here"/>
- </xsl:when>
- <xsl:when test="count($map/page) = 0"></xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$map/page">
- <xsl:call-template name="find_here">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="."/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="menu_item">
- <xsl:param name="here"/>
- <xsl:param name="map"/>
- <xsl:choose>
- <xsl:when test="$map/@title = $here">
- <span class="chosen"><xsl:value-of select="$map/@title"/></span>
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$map/@file"/></xsl:attribute>
- <xsl:value-of select="$map/@title"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="menu_layer">
- <xsl:param name="here"/>
- <xsl:param name="map"/>
- <xsl:if test="$map/page">
- <ul>
- <xsl:for-each select="$map/page">
- <li>
- <xsl:call-template name="show_menu_entry">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="."/>
- </xsl:call-template>
- </li>
- </xsl:for-each>
- </ul>
- </xsl:if>
- </xsl:template>
-
- <xsl:template name="show_menu_entry">
- <xsl:param name="here"/>
- <xsl:param name="map"/>
- <xsl:call-template name="menu_item">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- <xsl:variable name="is_in">
- <xsl:call-template name="find_here">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$is_in = $here">
- <xsl:call-template name="menu_layer">
- <xsl:with-param name="here" select="$here"/>
- <xsl:with-param name="map" select="$map"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$map/page">
- <br/>(<xsl:value-of select="count(page) + 1"/><xsl:text> pages)</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="masthead">
- <div class="card_back">
- <div class="card">
- <h1><xsl:value-of select="//page/@title"/></h1>
- <div class="in">
- <xsl:call-template name="internal_links"/>
- </div>
- <div class="out">
- <xsl:call-template name="external_links"/>
- </div>
- </div>
- </div>
- </xsl:template>
-
- <xsl:template name="internal_links">
- This page...
- <ul>
- <xsl:apply-templates select="//internal/link" mode="links"/>
- </ul>
- </xsl:template>
-
- <xsl:template name="external_links">
- Related...
- <ul>
- <xsl:apply-templates select="//external/link" mode="links"/>
- </ul>
- </xsl:template>
-
- <xsl:template name="copyright">
- <div class="copyright">
- Copyright<br/><a href="mailto:ma...@la...">Marcus Baker</a> 2003
- </div>
- </xsl:template>
-
- <xsl:template match="php">
- <pre>
- <xsl:call-template name="preserve_strong">
- <xsl:with-param name="raw" select="."/>
- </xsl:call-template>
- </pre>
- </xsl:template>
-
- <xsl:template match="code">
- <span class="new_code">
- <xsl:apply-templates/>
- </span>
- </xsl:template>
-
- <xsl:template match="sh">
- <pre class="shell">
- <xsl:call-template name="preserve_strong">
- <xsl:with-param name="raw" select="."/>
- </xsl:call-template>
- </pre>
- </xsl:template>
-
- <xsl:template match="file">
- <pre class="file">
- <xsl:apply-templates/>
- </pre>
- </xsl:template>
-
- <xsl:template match="section">
- <p>
- <a class="target">
- <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
- <h2><xsl:value-of select="@title"/></h2>
- </a>
- </p>
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="introduction">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="news">
- <p style="margin-right: 10%; margin-left: 10%;">
- <span style="color: red;">News:</span>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
- <xsl:template match="a">
- <xsl:copy>
- <xsl:for-each select="@class|@name|@href">
- <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:for-each select="@local">
- <xsl:attribute name="href">
- <xsl:value-of select="."/><xsl:text>.php</xsl:text>
- </xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="*">
- <xsl:copy>
- <xsl:for-each select="@*">
- <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="*" mode="links">
- <li><xsl:apply-templates/></li>
- </xsl:template>
-
- <xsl:template name="preserve_strong">
- <xsl:param name="raw"/>
- <xsl:choose>
- <xsl:when test="contains($raw, '<strong>') and contains($raw, '</strong>')">
- <xsl:value-of select="substring-before($raw, '<strong>')"/>
- <strong>
- <xsl:value-of select="substring-before(substring-after($raw, '<strong>'), '</strong>')"/>
- </strong>
- <xsl:call-template name="preserve_strong">
- <xsl:with-param name="raw" select="substring-after($raw, '</strong>')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$raw"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
Deleted: simpletest/trunk/packages/make_bundled_docs.sh
===================================================================
--- simpletest/trunk/packages/make_bundled_docs.sh 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/make_bundled_docs.sh 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,25 +0,0 @@
-#!/bin/sh
-xsltproc bundled_docs.xslt ../docs/source/en/simple_test.xml > ../docs/en/index.html
-xsltproc bundled_docs.xslt ../docs/source/en/overview.xml > ../docs/en/overview.html
-xsltproc bundled_docs.xslt ../docs/source/en/unit_test_documentation.xml > ../docs/en/unit_test_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/group_test_documentation.xml > ../docs/en/group_test_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/mock_objects_documentation.xml > ../docs/en/mock_objects_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/partial_mocks_documentation.xml > ../docs/en/partial_mocks_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/reporter_documentation.xml > ../docs/en/reporter_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/expectation_documentation.xml > ../docs/en/expectation_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/web_tester_documentation.xml > ../docs/en/web_tester_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/form_testing_documentation.xml > ../docs/en/form_testing_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/authentication_documentation.xml > ../docs/en/authentication_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/en/browser_documentation.xml > ../docs/en/browser_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/simple_test.xml > ../docs/fr/index.html
-xsltproc bundled_docs.xslt ../docs/source/fr/overview.xml > ../docs/fr/overview.html
-xsltproc bundled_docs.xslt ../docs/source/fr/unit_test_documentation.xml > ../docs/fr/unit_test_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/group_test_documentation.xml > ../docs/fr/group_test_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/mock_objects_documentation.xml > ../docs/fr/mock_objects_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/partial_mocks_documentation.xml > ../docs/fr/partial_mocks_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/reporter_documentation.xml > ../docs/fr/reporter_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/expectation_documentation.xml > ../docs/fr/expectation_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/web_tester_documentation.xml > ../docs/fr/web_tester_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/form_testing_documentation.xml > ../docs/fr/form_testing_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/authentication_documentation.xml > ../docs/fr/authentication_documentation.html
-xsltproc bundled_docs.xslt ../docs/source/fr/browser_documentation.xml > ../docs/fr/browser_documentation.html
Deleted: simpletest/trunk/packages/make_lastcraft_docs.sh
===================================================================
--- simpletest/trunk/packages/make_lastcraft_docs.sh 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/make_lastcraft_docs.sh 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,2 +0,0 @@
-#!/bin/bash
-php transform_all_lastcraft.php lastcraft.xslt ../docs/source/en/ ../docs/lastcraft/
Deleted: simpletest/trunk/packages/make_phpdoc_docs.sh
===================================================================
--- simpletest/trunk/packages/make_phpdoc_docs.sh 2012-01-09 10:04:41 UTC (rev 2040)
+++ simpletest/trunk/packages/make_phpdoc_docs.sh 2012-01-09 10:06:04 UTC (rev 2041)
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-#DEST_DIR=../docs/pkg
-if [ ! -d ../tutorials ]
-then
- mkdir ../tutorials
-fi
-if [ ! -d ../tutorials/SimpleTest ]
-then
- mkdir ../tutorials/SimpleTest
-fi
-DEST_DIR=../tutorials/SimpleTest
-
-rm ${DEST_DIR}/*.pkg
-cp ../docs/pkg/SimpleTest.pkg.ini ${DEST_DIR}
-
-#Xalan -o ${DEST_DIR}/QuickStart.pkg ../docs/source/en/simple_test.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/SimpleTest.pkg ../docs/source/en/overview.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/UnitTestCase.pkg ../docs/source/en/unit_test_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/GroupTests.pkg ../docs/source/en/group_test_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/MockObjects.pkg ../docs/source/en/mock_objects_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/PartialMock.pkg ../docs/source/en/partial_mocks_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/Reporting.pkg ../docs/source/en/reporter_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/Expectations.pkg ../docs/source/en/expectation_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/WebTester.pkg ../docs/source/en/web_tester_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/FormTesting.pkg ../docs/source/en/form_testing_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/Authentication.pkg ../docs/source/en/authentication_documentation.xml phpdoc_docs.xslt
-Xalan -o ${DEST_DIR}/Browser.pkg ../docs/source/en/browser_documentation.xml phpdoc_docs.xslt
-
-# some cleanup work
-cd $DEST_DIR
-
-# remove XML declaration
-for f in $(ls *.pkg --color=none)
-do
- grep -v -e '^<?xml' $f > tmp.pkg
- mv tmp.pkg $f
-done
-
-# fix overview title
-cat SimpleTest.pkg | sed -e 's/<refname>Overview/<refname>Simple Test PHP Unit Test Framework/g;s/<\([A-Za-z0-9]*\)\/>/<\1><\/\1>/g' > tmp.pkg
-mv tmp.pkg SimpleTest.pkg
Copied: simpletest/trunk/packages/pear/package.xml (from rev 2036, simpletest/trunk/package.xml)
===================================================================
--- simpletest/trunk/packages/pear/package.xml (rev 0)
+++ simpletest/trunk/packages/pear/package.xml 2012-01-09 10:06:04 UTC (rev 2041)
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<package packagerversion="1.8.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
+ http://pear.php.net/dtd/tasks-1.0.xsd
+ http://pear.php.net/dtd/package-2.0
+ http://pear.php.net/dtd/package-2.0.xsd">
+ <name>simpletest</name>
+ <channel>simpletest.pearfarm.org</channel>
+ <summary>Unit testing, mock objects and web testing framework for PHP.</summary>
+ <description>Unit testing, mock objects and web testing framework for PHP built around test cases. If you know JUnit/JMock or some of the PHPUnit clones this will need no explanation. Includes a native web browser for testing web sites directly (no JavaScript).</description>
+ <lead>
+ <name>Marcus Baker</name>
+ <user>lastcraft</user>
+ <email>ma...@la...</email>
+ <active>no</active>
+ </lead>
+ <developer>
+ <name>Perrick Penet</name>
+ <user>pp11</user>
+ <email>pp...@us...</email>
+ <active>yes</active>
+ </developer>
+ <date>2011-04-28</date>
+ <time>01:46:26</time>
+ <version>
+ <release>1.1</release>
+ <api>1.1</api>
+ </version>
+ <stability>
+ <release>alpha</release>
+ <api>alpha</api>
+ </stability>
+ <license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
+ <notes>This is a preliminary PEAR package of the latest SimpleTest code before
+ the next release is staged.
+ </notes>
+ <contents>
+ <dir name="/">
+ <file name="README" role="doc" />
+ <file name="LICENSE" role="doc" />
+ <file name="HELP_MY_TESTS_DONT_WORK_ANYMORE" role="doc" />
+ <file name="arguments.php" role="php" baseinstalldir="simpletest" />
+ <file name="authentication.php" role="php" baseinstalldir="simpletest" />
+ <file name="autorun.php" role="php" baseinstalldir="simpletest" />
+ <file name="browser.php" role="php" baseinstalldir="simpletest" />
+ <file name="collector.php" role="php" baseinstalldir="simpletest" />
+ <file name="compatibility.php" role="php" baseinstalldir="simpletest" />
+ <file name="cookies.php" role="php" baseinstalldir="simpletest" />
+ <file name="default_reporter.php" role="php" baseinstalldir="simpletest" />
+ <file name="detached.php" role="php" baseinstalldir="simpletest" />
+ <file name="dumper.php" role="php" baseinstalldir="simpletest" />
+ <file name="eclipse.php" role="php" baseinstalldir="simpletest" />
+ <file name="encoding.php" role="php" baseinstalldir="simpletest" />
+ <file name="errors.php" role="php" baseinstalldir="simpletest" />
+ <file name="exceptions.php" role="php" baseinstalldir="simpletest" />
+ <file name="expectation.php" role="php" baseinstalldir="simpletest" />
+ <file name="form.php" role="php" baseinstalldir="simpletest" />
+ <file name="frames.php" role="php" baseinstalldir="simpletest" />
+ <file name="http.php" role="php" baseinstalldir="simpletest" />
+ <file name="invoker.php" role="php" baseinstalldir="simpletest" />
+ <file name="mock_objects.php" role="php" baseinstalldir="simpletest" />
+ <file name="page.php" role="php" baseinstalldir="simpletest" />
+ <file name="php_parser.php" role="php" baseinstalldir="simpletest" />
+ <file name="recorder.php" role="php" baseinstalldir="simpletest" />
+ <file name="reflection_php4.php" role="php" baseinstalldir="simpletest" />
+ <file name="reflection_php5.php" role="php" baseinstalldir="simpletest" />
+ <file name="remote.php" role="php" baseinstalldir="simpletest" />
+ <file name="reporter.php" role="php" baseinstalldir="simpletest" />
+ <file name="scorer.php" role="php" baseinstalldir="simpletest" />
+ <file name="selector.php" role="php" baseinstalldir="simpletest" />
+ <file name="shell_tester.php" role="php" baseinstalldir="simpletest" />
+ <file name="simpletest.php" role="php" baseinstalldir="simpletest" />
+ <file name="socket.php" role="php" baseinstalldir="simpletest" />
+ <file name="tag.php" role="php" baseinstalldir="simpletest" />
+ <file name="test_case.php" role="php" baseinstalldir="simpletest" />
+ <file name="tidy_parser.php" role="php" baseinstalldir="simpletest" />
+ <file name="unit_tester.php" role="php" baseinstalldir="simpletest" />
+ <file name="url.php" role="php" baseinstalldir="simpletest" />
+ <file name="user_agent.php" role="php" baseinstalldir="simpletest" />
+ <file name="web_tester.php" role="php" baseinstalldir="simpletest" />
+ <file name="xml.php" role="php" baseinstalldir="simpletest" />
+ </dir>
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>5.0.5</min>
+ </php>
+ <pearinstaller>
+ <min>1.4.0</min>
+ </pearinstaller>
+ </required>
+ </dependencies>
+ <phprelease />
+</package>
\ No newline at end of file
Copied: simpletest/trunk/packages/phing/extension.xml (from rev 2036, simpletest/trunk/packages/extension.xml)
===================================================================
--- simpletest/trunk/packages/phing/extension.xml (rev 0)
+++ simpletest/trunk/packages/phing/extension.xml 2012-01-09 10:06:04 UTC (rev 2041)
@@ -0,0 +1,40 @@
+<project name="simpletest" default="package" basedir="..">
+
+ <target name="info">
+ <echo msg="Builds a packaged release from SimpleTest extension source" />
+ </target>
+
+ <input propertyname="ext_name" promptChar=":">Name of the extension to build</input>
+
+ <target name="package">
+ <mkdir dir="extensions/test" />
+ <copy todir="extensions/test">
+ <filterchain>
+ <replaceregexp>
+ <regexp pattern="dirname\(__FILE__\)\s\.\s'\/\.\.\/\.\.\/\.\.\/autorun.php'"
+ replace="'simpletest/autorun.php'"
+ ignoreCase="false"/>
+ <regexp pattern="\/\.\.\/\.\.\/\.\.\/extensions\/"
+ replace="/../"
+ ignoreCase=...
[truncated message content] |