mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
MINOR: Simplified phpunit files so that they work with PHPUnit 3.5
This commit is contained in:
parent
792df1e249
commit
4bb7d6a940
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
PHPUnit configuration for SilverStripe
|
PHPUnit configuration for SilverStripe
|
||||||
|
|
||||||
Requires PHPUnit 3.6+
|
Requires PHPUnit 3.5+
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
- "phpunit": Runs all tests in all folders
|
- "phpunit": Runs all tests in all folders
|
||||||
@ -16,20 +16,13 @@
|
|||||||
for more information on configuration and execution options.
|
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.
|
- 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>
|
|
||||||
</testsuite>
|
|
||||||
|
|
||||||
<filter>
|
<testsuite name="Default">
|
||||||
<blacklist>
|
<directory>mysite/tests</directory>
|
||||||
<directory suffix=".php">framework/dev/</directory>
|
<directory>cms/tests</directory>
|
||||||
<directory suffix=".php">framework/thirdparty/</directory>
|
<directory>framework/tests</directory>
|
||||||
<directory suffix=".php">cms/thirdparty/</directory>
|
</testsuite>
|
||||||
<file>framework/tests/PhpSyntaxTest.php</file>
|
|
||||||
</blacklist>
|
|
||||||
</filter>
|
|
||||||
|
|
||||||
<listeners>
|
<listeners>
|
||||||
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
PHPUnit configuration for SilverStripe
|
PHPUnit configuration for SilverStripe
|
||||||
|
|
||||||
Requires PHPUnit 3.6+
|
Requires PHPUnit 3.5+
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
- "phpunit": Runs all tests in all folders
|
- "phpunit": Runs all tests in all folders
|
||||||
@ -16,20 +16,13 @@
|
|||||||
for more information on configuration and execution options.
|
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.
|
- 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>
|
|
||||||
</testsuite>
|
|
||||||
|
|
||||||
<filter>
|
<testsuite name="Default">
|
||||||
<blacklist>
|
<directory>mysite/tests</directory>
|
||||||
<directory suffix=".php">framework/dev/</directory>
|
<directory>cms/tests</directory>
|
||||||
<directory suffix=".php">framework/thirdparty/</directory>
|
<directory>framework/tests</directory>
|
||||||
<directory suffix=".php">cms/thirdparty/</directory>
|
</testsuite>
|
||||||
<file>framework/tests/PhpSyntaxTest.php</file>
|
|
||||||
</blacklist>
|
|
||||||
</filter>
|
|
||||||
|
|
||||||
<listeners>
|
<listeners>
|
||||||
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user