move configuration constants in PHP file that they are seen also in isolated tests

This commit is contained in:
uwetews
2015-10-18 20:22:11 +02:00
parent 48676467ce
commit 75663948f2
3 changed files with 20 additions and 13 deletions

18
tests/Config.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
/*
* This file is part of the Smarty PHPUnit tests.
*
*/
/*
* Smarty PHPUnit Config
*/
define('individualFolders', false);
define('MemCacheEnable', false);
define('ApcCacheEnable', false);
define('MysqlCacheEnable', false);
define('PdoCacheEnable', false);
define('PdoGzipCacheEnable', false);
define('MysqlResourceEnable', false);
define('DB_DSN', "mysql:dbname=test;host=localhost");
define('DB_USER', "smarty");
define('DB_PASSWD', "");

View File

@@ -4,6 +4,7 @@
*
*/
include_once __DIR__ . '/Config.php';
/**
* Smarty Test Case Fixture
*/

View File

@@ -9,19 +9,6 @@
beStrictAboutOutputDuringTests="true"
stopOnFailure="false">
<php>
<const name="individualFolders" value="true"/>
<const name="MemCacheEnable" value="false"/>
<const name="ApcCacheEnable" value="false"/>
<const name="MysqlCacheEnable" value="false"/>
<const name="PdoCacheEnable" value="false"/>
<const name="PdoGzipCacheEnable" value="false"/>
<const name="MysqlResourceEnable" value="false"/>
<const name="DB_DSN" value="mysql:dbname=test;host=localhost"/>
<const name="DB_USER" value="smarty"/>
<const name="DB_PASSWD" value=""/>
</php>
<filter>
<testsuites>
<testsuite name="Smarty Test Suite">
@@ -42,6 +29,7 @@
</filter>
<logging>
highlight="false" lowUpperBound="35" highLowerBound="70"/>
<log type="tap" target="TestResults.tap"/>
</logging>
</phpunit>