mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
move configuration constants in PHP file that they are seen also in isolated tests
This commit is contained in:
18
tests/Config.php
Normal file
18
tests/Config.php
Normal 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', "");
|
@@ -4,6 +4,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
include_once __DIR__ . '/Config.php';
|
||||||
/**
|
/**
|
||||||
* Smarty Test Case Fixture
|
* Smarty Test Case Fixture
|
||||||
*/
|
*/
|
||||||
|
@@ -9,19 +9,6 @@
|
|||||||
beStrictAboutOutputDuringTests="true"
|
beStrictAboutOutputDuringTests="true"
|
||||||
stopOnFailure="false">
|
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>
|
<filter>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Smarty Test Suite">
|
<testsuite name="Smarty Test Suite">
|
||||||
@@ -42,6 +29,7 @@
|
|||||||
</filter>
|
</filter>
|
||||||
<logging>
|
<logging>
|
||||||
highlight="false" lowUpperBound="35" highLowerBound="70"/>
|
highlight="false" lowUpperBound="35" highLowerBound="70"/>
|
||||||
|
<log type="tap" target="TestResults.tap"/>
|
||||||
</logging>
|
</logging>
|
||||||
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
Reference in New Issue
Block a user