mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
add error case
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9261 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ab4042f721
commit
5f66f744e1
1 changed files with 5 additions and 1 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
define('__DEBUG__', 1);
|
||||
define('_XE_PATH_', realpath(dirname(__FILE__).'/../../../'));
|
||||
require _XE_PATH_.'/classes/file/FileHandler.class.php';
|
||||
require _XE_PATH_.'/classes/template/TemplateHandler.class.php';
|
||||
|
||||
$_SERVER['SCRIPT_NAME'] = '/xe/index.php';
|
||||
|
|
@ -109,6 +108,11 @@ class TemplateHandlerTest extends PHPUnit_Framework_TestCase
|
|||
'<dummy /><load target="css/style.css" /><dummy />',
|
||||
'<dummy /><!--#Meta:tests/classes/template/css/style.css--><?php $__tmp=array(\'tests/classes/template/css/style.css\',\'\',\'\',\'\',\'\',\'\',\'\');Context::loadFile($__tmp);unset($__tmp); ?><dummy />'
|
||||
),
|
||||
// error case
|
||||
array(
|
||||
'<a href="{$layout_info->index_url}" cond="$layout_info->logo_image"><img src="{$layout_info->logo_image}" alt="logo" border="0" class="iePngFix" /></a>',
|
||||
'<?php if($__Context->layout_info->logo_image){ ?><a href="<?php echo $__Context->layout_info->index_url ?>"><img src="<?php echo $__Context->layout_info->logo_image ?>" alt="logo" border="0" class="iePngFix" /></a><?php } ?>'
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue