MINOR: Simplified phpunit files so that they work with PHPUnit 3.5

This commit is contained in:
Sam Minnee 2012-05-28 18:20:46 +12:00
parent 792df1e249
commit 4bb7d6a940
2 changed files with 16 additions and 30 deletions

View File

@ -1,7 +1,7 @@
<!--
PHPUnit configuration for SilverStripe
Requires PHPUnit 3.6+
Requires PHPUnit 3.5+
Usage:
- "phpunit": Runs all tests in all folders
@ -16,20 +16,13 @@
for more information on configuration and execution options.
- framework/dev/TestRunner.php for an alternative way to run unit tests through the "sake" CLI tool.
-->
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>./</directory>
<exclude>framework/thirdparty/</exclude>
</testsuite>
<phpunit bootstrap="framework/tests/bootstrap.php" colors="false" backupGlobals="false" backupStaticAttributes="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" syntaxCheck="false" verbose="true" strict="true">
<filter>
<blacklist>
<directory suffix=".php">framework/dev/</directory>
<directory suffix=".php">framework/thirdparty/</directory>
<directory suffix=".php">cms/thirdparty/</directory>
<file>framework/tests/PhpSyntaxTest.php</file>
</blacklist>
</filter>
<testsuite name="Default">
<directory>mysite/tests</directory>
<directory>cms/tests</directory>
<directory>framework/tests</directory>
</testsuite>
<listeners>
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
@ -41,4 +34,4 @@
<group>sanitychecks</group>
</exclude>
</groups>
</phpunit>
</phpunit>

View File

@ -1,7 +1,7 @@
<!--
PHPUnit configuration for SilverStripe
Requires PHPUnit 3.6+
Requires PHPUnit 3.5+
Usage:
- "phpunit": Runs all tests in all folders
@ -16,21 +16,14 @@
for more information on configuration and execution options.
- framework/dev/TestRunner.php for an alternative way to run unit tests through the "sake" CLI tool.
-->
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true">
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true" backupGlobals="false" backupStaticAttributes="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" syntaxCheck="false" verbose="true" strict="true">
<testsuite name="Default">
<directory>./</directory>
<exclude>framework/thirdparty/</exclude>
<directory>mysite/tests</directory>
<directory>cms/tests</directory>
<directory>framework/tests</directory>
</testsuite>
<filter>
<blacklist>
<directory suffix=".php">framework/dev/</directory>
<directory suffix=".php">framework/thirdparty/</directory>
<directory suffix=".php">cms/thirdparty/</directory>
<file>framework/tests/PhpSyntaxTest.php</file>
</blacklist>
</filter>
<listeners>
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
</listeners>
@ -40,4 +33,4 @@
<group>sanitychecks</group>
</exclude>
</groups>
</phpunit>
</phpunit>