mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Issue 1025 adding phpunit.xml
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9815 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
518a8a2f59
commit
c9cd22517c
4 changed files with 19 additions and 6 deletions
0
tests/Bootstrap.php
Normal file
0
tests/Bootstrap.php
Normal file
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
define('__DEBUG__', 1);
|
||||
define('_XE_PATH_', str_replace('tests/classes/template/TemplateHandlerTest.php', '', strtr(__FILE__, '\\', '/')));
|
||||
require _XE_PATH_.'/classes/file/FileHandler.class.php';
|
||||
require _XE_PATH_.'/classes/template/TemplateHandler.class.php';
|
||||
require_once _XE_PATH_.'/classes/file/FileHandler.class.php';
|
||||
require_once _XE_PATH_.'/classes/template/TemplateHandler.class.php';
|
||||
|
||||
$_SERVER['SCRIPT_NAME'] = '/xe/index.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
define('__DEBUG__', 1);
|
||||
$xe_path = realpath(dirname(__FILE__).'/../../../');
|
||||
require "{$xe_path}/classes/xml/XmlParser.class.php";
|
||||
require "{$xe_path}/classes/handler/Handler.class.php";
|
||||
require "{$xe_path}/classes/file/FileHandler.class.php";
|
||||
require "{$xe_path}/classes/validator/Validator.class.php";
|
||||
require_once "{$xe_path}/classes/xml/XmlParser.class.php";
|
||||
require_once "{$xe_path}/classes/handler/Handler.class.php";
|
||||
require_once "{$xe_path}/classes/file/FileHandler.class.php";
|
||||
require_once "{$xe_path}/classes/validator/Validator.class.php";
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
|
||||
|
|
|
|||
13
tests/phpunit.xml
Normal file
13
tests/phpunit.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<phpunit bootstrap="./Bootstrap.php">
|
||||
<testsuites>
|
||||
<testsuite name="XE Core Test Suite">
|
||||
<directory>.</directory>
|
||||
<exclude>./classes/db/</exclude>
|
||||
<exclude>./classes/security/</exclude>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<logging>
|
||||
<log type="junit" target="./logs/junit.xml" />
|
||||
<log type="coverage-clover" target="./logs/clover.xml"/>
|
||||
</logging>
|
||||
</phpunit>
|
||||
Loading…
Add table
Add a link
Reference in a new issue