[Phpbbproject-svn] SF.net SVN: phpbbproject:[311] trunk
phpBB download manager, mainly aimed at MOD authors
Status: Planning
Brought to you by:
lord_le_brand
From: <lor...@us...> - 2014-10-22 18:39:57
|
Revision: 311 http://sourceforge.net/p/phpbbproject/svn/311 Author: lord_le_brand Date: 2014-10-22 18:39:47 +0000 (Wed, 22 Oct 2014) Log Message: ----------- build.xml fix #4 + added testsuite skeleton Modified Paths: -------------- trunk/build.xml Added Paths: ----------- trunk/test/ trunk/test/appTest.php trunk/test/phpunit.xml Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2014-10-22 18:09:20 UTC (rev 310) +++ trunk/build.xml 2014-10-22 18:39:47 UTC (rev 311) @@ -3,8 +3,8 @@ <project name="phpBB Project" default="build" basedir="." description="Phing buildfile for phpBB Project"> <property file="./build.properties"/> <target name="prepare"> - <mkdir dir="docs" /> - <mkdir dir="build" /> + <mkdir dir="${phpdoc.output.html.dir}" /> + <mkdir dir="${dir.output}" /> </target> <target name="package"> @@ -13,34 +13,30 @@ </target> <target name="docs"> - <phpdoc title="phpBB Project" destdir="docs" output="HTML:Smarty:PHP" linksource="true" quiet="true"> - <fileset dir="src"> - <include name="*.php"/> - </fileset> - </phpdoc> + <exec + command="${phpdoc.exec} ${phpdoc.args}" + dir="${project.basedir}" + passthru="true" + /> </target> <target name="build"> </target> <target name="test"> - <mkdir dir="${phpunit.output.xml.dir}"/> - <mkdir dir="${phpunit.output.html.dir}"/> - <exec - command="TMPDIR=build/test/tmp TEST=true php ${dir.vendor.bin}/phpunit" - dir="${project.basedir}/test" - passthru="true" - /> - <xslt - file="${phpunit.output.xml.file}" - tofile="${junit.output.xml.file}" - style="${junit.style}" - /> + <mkdir dir="${phpunit.output.xml.dir}"/> + <mkdir dir="${phpunit.output.html.dir}"/> + <exec + command="${phpunit.exec} ${phpunit.args}" + dir="${project.basedir}/test" + passthru="true" + /> + <xslt + file="${phpunit.output.xml.file}" + tofile="${junit.output.xml.file}" + style="${junit.style}" + /> </target> <target name="clean"> - <delete dir="docs" /> - <delete dir="build" /> - <delete file="phpbbproject-*.zip" /> - <delete file="phpbbproject-*.tar" /> </target> </project> Added: trunk/test/appTest.php =================================================================== --- trunk/test/appTest.php (rev 0) +++ trunk/test/appTest.php 2014-10-22 18:39:47 UTC (rev 311) @@ -0,0 +1,14 @@ +<?php + +class Test_App extends PHPUnit_Framework_TestCase +{ + /** + * @test + */ + public function can_return_project() + { + $this->assertEquals(0, 0); + } +} + +?> Added: trunk/test/phpunit.xml =================================================================== --- trunk/test/phpunit.xml (rev 0) +++ trunk/test/phpunit.xml 2014-10-22 18:39:47 UTC (rev 311) @@ -0,0 +1,19 @@ +<phpunit + backupGlobals="false" + backupStaticAttributes="false" + syntaxCheck="false" + convertErrorsToExceptions="true" + convertNoticesToExceptions="true" + convertWarningsToExceptions="true" +> + <filter> + <whitelist> + <directory suffix=".php">../src</directory> + </whitelist> + </filter> + <testsuites> + <testsuite name="phpBB Project Testsuite"> + <directory suffix=".php">TestApp</directory> + </testsuite> + </testsuites> +</phpunit> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |