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

@ -0,0 +1,24 @@
<?php
if(!defined('__DEBUG__')) define('__DEBUG__', 1);
if(!defined('__XE__')) define('__XE__', true);
if(!defined('__ZBXE__')) define('__ZBXE__', true);
if(!defined('_XE_PATH_')) define('_XE_PATH_', realpath(dirname(__FILE__).'/../').'/');
error_reporting(E_ALL & ~E_NOTICE);
/**
* Print out the message
**/
function _log($msg) {
$args = func_get_args();
foreach($args as $arg) {
fwrite(STDOUT, "\n");
fwrite(STDOUT, print_r($arg, true));
}
fwrite(STDOUT, "\n");
}
/* End of file Bootstrap.php */
/* Location: ./tests/Bootstrap.php */