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:
taggon 2011-11-22 07:46:47 +00:00
parent aa90148aa3
commit 67751eb85b
8 changed files with 148 additions and 135 deletions

View file

@ -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
{