mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
All classes can be tested from now.
1) Add some test files. 2) Create a folder for fronendfile. Move the class file into the folder. 3) Write Bootstrap.php file. 4) Modify phpunit.xml file. 5) Add a context mock class. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9850 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aa90148aa3
commit
67751eb85b
8 changed files with 148 additions and 135 deletions
|
|
@ -1,11 +1,9 @@
|
|||
<?php
|
||||
|
||||
define('__DEBUG__', 1);
|
||||
define('_XE_PATH_', str_replace('tests/classes/template/TemplateHandlerTest.php', '', strtr(__FILE__, '\\', '/')));
|
||||
require_once _XE_PATH_.'/classes/file/FileHandler.class.php';
|
||||
require_once _XE_PATH_.'/classes/template/TemplateHandler.class.php';
|
||||
if(!defined('__XE__')) require dirname(__FILE__).'/../../Bootstrap.php';
|
||||
|
||||
$_SERVER['SCRIPT_NAME'] = '/xe/index.php';
|
||||
require_once _XE_PATH_.'classes/file/FileHandler.class.php';
|
||||
require_once _XE_PATH_.'classes/template/TemplateHandler.class.php';
|
||||
|
||||
class TemplateHandlerTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue