mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Update exception messages 3.1.32-dev-33
This commit is contained in:
@@ -49,7 +49,7 @@ class CompileBlockPluginTest extends PHPUnit_Smarty
|
|||||||
* test unknown block plugin tag
|
* test unknown block plugin tag
|
||||||
*
|
*
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage unknown tag "bar"
|
* @expectedExceptionMessage unknown tag 'bar'
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function testBlockPluginUnknown()
|
public function testBlockPluginUnknown()
|
||||||
@@ -278,9 +278,6 @@ class CompileBlockPluginTest extends PHPUnit_Smarty
|
|||||||
{
|
{
|
||||||
$this->smarty->registerFilter('pre', array($this, 'prefilterTest'));
|
$this->smarty->registerFilter('pre', array($this, 'prefilterTest'));
|
||||||
$this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK, 'cachetest', 'myblockplugintest2', $cachable);
|
$this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK, 'cachetest', 'myblockplugintest2', $cachable);
|
||||||
if ($testNumber == 13) {
|
|
||||||
$i = 0;
|
|
||||||
}
|
|
||||||
$this->smarty->compile_id = $compileid;
|
$this->smarty->compile_id = $compileid;
|
||||||
$this->smarty->caching = $caching;
|
$this->smarty->caching = $caching;
|
||||||
$this->smarty->cache_lifetime = 1000;
|
$this->smarty->cache_lifetime = 1000;
|
||||||
|
@@ -752,7 +752,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage "$smarty.block.child" used outside {block} tags
|
* @expectedExceptionMessage '$smarty.block.child' used outside {block} tags
|
||||||
* test {$this->smarty.block.child} outside {block]
|
* test {$this->smarty.block.child} outside {block]
|
||||||
*/
|
*/
|
||||||
public function testSmartyBlockChildOutsideBlock_025()
|
public function testSmartyBlockChildOutsideBlock_025()
|
||||||
@@ -762,7 +762,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage "$smarty.block.parent" used outside {block} tags
|
* @expectedExceptionMessage '$smarty.block.parent' used outside {block} tags
|
||||||
* test {$this->smarty.block.parent} outside {block]
|
* test {$this->smarty.block.parent} outside {block]
|
||||||
*/
|
*/
|
||||||
public function testSmartyBlockParentOutsideBlock_026()
|
public function testSmartyBlockParentOutsideBlock_026()
|
||||||
@@ -998,7 +998,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
|
|||||||
* test smarty.block.foo
|
* test smarty.block.foo
|
||||||
*
|
*
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage invalid "$smarty.block.foo" expected "$smarty.block.child" or "$smarty.block.parent"
|
* @expectedExceptionMessage invalid '$smarty.block.foo' expected '$smarty.block.child' or '$smarty.block.parent'
|
||||||
*/
|
*/
|
||||||
public function testSmartyBlockWrongBlockName_036()
|
public function testSmartyBlockWrongBlockName_036()
|
||||||
{
|
{
|
||||||
@@ -1010,7 +1010,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
|
|||||||
* test smarty.block
|
* test smarty.block
|
||||||
*
|
*
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage invalid "$smarty.block" expected "$smarty.block.child" or "$smarty.block.parent"
|
* @expectedExceptionMessage invalid '$smarty.block' expected '$smarty.block.child' or '$smarty.block.parent'
|
||||||
*/
|
*/
|
||||||
public function testSmartyBlockMissigBlockName_037()
|
public function testSmartyBlockMissigBlockName_037()
|
||||||
{
|
{
|
||||||
|
@@ -112,7 +112,7 @@ class CompilePhpTest extends PHPUnit_Smarty
|
|||||||
/**
|
/**
|
||||||
* test {php no cache}illegal option
|
* test {php no cache}illegal option
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage illegal value of option flag "no cache"
|
* @expectedExceptionMessage illegal value of option flag 'no cache'
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function testPHP_Tag_IllegalOption()
|
public function testPHP_Tag_IllegalOption()
|
||||||
|
@@ -29,7 +29,7 @@ class AttributeTest extends PHPUnit_Smarty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage missing "var" attribute
|
* @expectedExceptionMessage missing 'var' attribute
|
||||||
* test required attribute
|
* test required attribute
|
||||||
*/
|
*/
|
||||||
public function testRequiredAttributeVar()
|
public function testRequiredAttributeVar()
|
||||||
@@ -39,7 +39,7 @@ class AttributeTest extends PHPUnit_Smarty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage unexpected "bar" attribute
|
* @expectedExceptionMessage unexpected 'bar' attribute
|
||||||
* test unexpected attribute
|
* test unexpected attribute
|
||||||
*/
|
*/
|
||||||
public function testUnexpectedAttribute()
|
public function testUnexpectedAttribute()
|
||||||
|
@@ -37,7 +37,7 @@ class CompileErrorTest extends PHPUnit_Smarty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage unknown tag "unknown"
|
* @expectedExceptionMessage unknown tag 'unknown'
|
||||||
* test unkown tag error
|
* test unkown tag error
|
||||||
*/
|
*/
|
||||||
public function testUnknownTagError()
|
public function testUnknownTagError()
|
||||||
|
@@ -84,7 +84,7 @@ class DoubleQuotedStringTest extends PHPUnit_Smarty
|
|||||||
* test unclosed block tag
|
* test unclosed block tag
|
||||||
*
|
*
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage unclosed "{if}" in doubled quoted string
|
* @expectedExceptionMessage unclosed '{if}' in doubled quoted string
|
||||||
*/
|
*/
|
||||||
public function testDoubleQuotedUnclosedBlock_001()
|
public function testDoubleQuotedUnclosedBlock_001()
|
||||||
{
|
{
|
||||||
|
@@ -96,7 +96,7 @@ class ModifierTest extends PHPUnit_Smarty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException SmartyCompilerException
|
* @expectedException SmartyCompilerException
|
||||||
* @expectedExceptionMessage unknown modifier "unknown"
|
* @expectedExceptionMessage unknown modifier 'unknown'
|
||||||
* test unknown modifier error
|
* test unknown modifier error
|
||||||
*/
|
*/
|
||||||
public function testUnknownModifier()
|
public function testUnknownModifier()
|
||||||
|
Reference in New Issue
Block a user