Skip to content

Commit

Permalink
MINOR: Simplified phpunit files so that they work with PHPUnit 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minnee committed May 28, 2012
1 parent 792df1e commit 4bb7d6a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 29 deletions.
21 changes: 7 additions & 14 deletions phpunit.teamcity.xml
@@ -1,7 +1,7 @@
<!--
PHPUnit configuration for SilverStripe
Requires PHPUnit 3.6+
Requires PHPUnit 3.5+
Usage:
- "phpunit": Runs all tests in all folders
Expand All @@ -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="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">

<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" />
<listener class="TeamCityListener" file="framework/dev/TeamCityListener.php"/>
Expand All @@ -41,4 +34,4 @@
<group>sanitychecks</group>
</exclude>
</groups>
</phpunit>
</phpunit>
23 changes: 8 additions & 15 deletions phpunit.xml.dist
@@ -1,7 +1,7 @@
<!--
PHPUnit configuration for SilverStripe
Requires PHPUnit 3.6+
Requires PHPUnit 3.5+
Usage:
- "phpunit": Runs all tests in all folders
Expand All @@ -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>
Expand All @@ -40,4 +33,4 @@
<group>sanitychecks</group>
</exclude>
</groups>
</phpunit>
</phpunit>

0 comments on commit 4bb7d6a

Please sign in to comment.