Update exception messages 3.1.32-dev-33

This commit is contained in:
Uwe Tews
2017-11-05 20:40:46 +01:00
parent 51c813556c
commit 8a6f2493c6
7 changed files with 11 additions and 14 deletions

View File

@@ -49,7 +49,7 @@ class CompileBlockPluginTest extends PHPUnit_Smarty
* test unknown block plugin tag
*
* @expectedException SmartyCompilerException
* @expectedExceptionMessage unknown tag "bar"
* @expectedExceptionMessage unknown tag 'bar'
*
*/
public function testBlockPluginUnknown()
@@ -278,9 +278,6 @@ class CompileBlockPluginTest extends PHPUnit_Smarty
{
$this->smarty->registerFilter('pre', array($this, 'prefilterTest'));
$this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK, 'cachetest', 'myblockplugintest2', $cachable);
if ($testNumber == 13) {
$i = 0;
}
$this->smarty->compile_id = $compileid;
$this->smarty->caching = $caching;
$this->smarty->cache_lifetime = 1000;

View File

@@ -752,7 +752,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* @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]
*/
public function testSmartyBlockChildOutsideBlock_025()
@@ -762,7 +762,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* @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]
*/
public function testSmartyBlockParentOutsideBlock_026()
@@ -998,7 +998,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
* test smarty.block.foo
*
* @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()
{
@@ -1010,7 +1010,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
* test smarty.block
*
* @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()
{

View File

@@ -112,7 +112,7 @@ class CompilePhpTest extends PHPUnit_Smarty
/**
* test {php no cache}illegal option
* @expectedException SmartyCompilerException
* @expectedExceptionMessage illegal value of option flag "no cache"
* @expectedExceptionMessage illegal value of option flag 'no cache'
*
*/
public function testPHP_Tag_IllegalOption()

View File

@@ -29,7 +29,7 @@ class AttributeTest extends PHPUnit_Smarty
/**
* @expectedException SmartyCompilerException
* @expectedExceptionMessage missing "var" attribute
* @expectedExceptionMessage missing 'var' attribute
* test required attribute
*/
public function testRequiredAttributeVar()
@@ -39,7 +39,7 @@ class AttributeTest extends PHPUnit_Smarty
/**
* @expectedException SmartyCompilerException
* @expectedExceptionMessage unexpected "bar" attribute
* @expectedExceptionMessage unexpected 'bar' attribute
* test unexpected attribute
*/
public function testUnexpectedAttribute()

View File

@@ -37,7 +37,7 @@ class CompileErrorTest extends PHPUnit_Smarty
/**
* @expectedException SmartyCompilerException
* @expectedExceptionMessage unknown tag "unknown"
* @expectedExceptionMessage unknown tag 'unknown'
* test unkown tag error
*/
public function testUnknownTagError()

View File

@@ -84,7 +84,7 @@ class DoubleQuotedStringTest extends PHPUnit_Smarty
* test unclosed block tag
*
* @expectedException SmartyCompilerException
* @expectedExceptionMessage unclosed "{if}" in doubled quoted string
* @expectedExceptionMessage unclosed '{if}' in doubled quoted string
*/
public function testDoubleQuotedUnclosedBlock_001()
{

View File

@@ -96,7 +96,7 @@ class ModifierTest extends PHPUnit_Smarty
/**
* @expectedException SmartyCompilerException
* @expectedExceptionMessage unknown modifier "unknown"
* @expectedExceptionMessage unknown modifier 'unknown'
* test unknown modifier error
*/
public function testUnknownModifier()