Permalink
Browse files

Add PHPCS, fix error reporting to go back in the phpunit configuration

  • Loading branch information...
1 parent 3ea17ed commit aa1e207fb4358757be858199fc70668ef56010ec @CloCkWeRX CloCkWeRX committed Nov 29, 2011
Showing with 13 additions and 1 deletion.
  1. +8 −0 build.xml
  2. +5 −1 phpunit.xml
View
@@ -26,6 +26,14 @@
<mkdir dir="${basedir}/build/pdepend"/>
</target>
+ <target name="phpcs-ci" description="Find coding standard violations using PHP_CodeSniffer">
+ <exec executable="phpcs" output="/dev/null">
+ <arg value="--report=checkstyle" />
+ <arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
+ <arg path="${basedir}" />
+ </exec>
+ </target>
+
<target name="phpunit">
<exec dir="${basedir}" executable="${phpunit.bin}" failonerror="true">
<arg line="."/>
View
@@ -17,5 +17,9 @@
<file>*Test.php</file>
</testsuite>
</testsuites>
- <php><includePath>lib/</includePath></php>
+ <php>
+ <includePath>lib/</includePath>
+ <!-- E_ALL -->
+ <ini name="error_reporting" value="30719" />
+ </php>
</phpunit>

0 comments on commit aa1e207

Please sign in to comment.