mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
fixed CS
This commit is contained in:
@@ -303,7 +303,7 @@ class Twig_Tests_EnvironmentTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException LogicException
|
||||
* @expectedException \LogicException
|
||||
* @expectedExceptionMessage Unable to register extension "Twig_Tests_EnvironmentTest_Extension" as it is already registered.
|
||||
*/
|
||||
public function testOverrideExtension()
|
||||
@@ -341,7 +341,7 @@ class Twig_Tests_EnvironmentTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Runtime
|
||||
* @expectedException \Twig_Error_Runtime
|
||||
* @expectedExceptionMessage Failed to load Twig template "testFailLoadTemplate.twig", index "abc": cache is corrupted in "testFailLoadTemplate.twig".
|
||||
*/
|
||||
public function testFailLoadTemplate()
|
||||
@@ -353,7 +353,7 @@ class Twig_Tests_EnvironmentTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Runtime
|
||||
* @expectedException \Twig_Error_Runtime
|
||||
* @expectedExceptionMessage Circular reference detected for Twig template "base.html.twig", path: base.html.twig -> base.html.twig in "base.html.twig" at line 1
|
||||
*/
|
||||
public function testFailLoadTemplateOnCircularReference()
|
||||
@@ -366,7 +366,7 @@ class Twig_Tests_EnvironmentTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Runtime
|
||||
* @expectedException \Twig_Error_Runtime
|
||||
* @expectedExceptionMessage Circular reference detected for Twig template "base1.html.twig", path: base1.html.twig -> base2.html.twig -> base1.html.twig in "base1.html.twig" at line 1
|
||||
*/
|
||||
public function testFailLoadTemplateOnComplexCircularReference()
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
class Twig_Tests_Loader_ArrayTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException Twig_Error_Loader
|
||||
* @expectedException \Twig_Error_Loader
|
||||
*/
|
||||
public function testGetSourceContextWhenTemplateDoesNotExist()
|
||||
{
|
||||
@@ -51,7 +51,7 @@ class Twig_Tests_Loader_ArrayTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Loader
|
||||
* @expectedException \Twig_Error_Loader
|
||||
*/
|
||||
public function testGetCacheKeyWhenTemplateDoesNotExist()
|
||||
{
|
||||
@@ -75,7 +75,7 @@ class Twig_Tests_Loader_ArrayTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Loader
|
||||
* @expectedException \Twig_Error_Loader
|
||||
*/
|
||||
public function testIsFreshWhenTemplateDoesNotExist()
|
||||
{
|
||||
|
||||
@@ -33,7 +33,7 @@ class Twig_Tests_Loader_ChainTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Loader
|
||||
* @expectedException \Twig_Error_Loader
|
||||
*/
|
||||
public function testGetSourceContextWhenTemplateDoesNotExist()
|
||||
{
|
||||
@@ -54,7 +54,7 @@ class Twig_Tests_Loader_ChainTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Loader
|
||||
* @expectedException \Twig_Error_Loader
|
||||
*/
|
||||
public function testGetCacheKeyWhenTemplateDoesNotExist()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
class Twig_Tests_ParserTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException Twig_Error_Syntax
|
||||
* @expectedException \Twig_Error_Syntax
|
||||
* @expectedExceptionMessage Unknown "foo" tag. Did you mean "for" at line 1?
|
||||
*/
|
||||
public function testUnknownTag()
|
||||
@@ -27,7 +27,7 @@ class Twig_Tests_ParserTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Syntax
|
||||
* @expectedException \Twig_Error_Syntax
|
||||
* @expectedExceptionMessage Unknown "foobar" tag at line 1.
|
||||
*/
|
||||
public function testUnknownTagWithoutSuggestions()
|
||||
@@ -74,7 +74,7 @@ class Twig_Tests_ParserTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider getFilterBodyNodesDataThrowsException
|
||||
* @expectedException Twig_Error_Syntax
|
||||
* @expectedException \Twig_Error_Syntax
|
||||
*/
|
||||
public function testFilterBodyNodesThrowsException($input)
|
||||
{
|
||||
|
||||
@@ -109,7 +109,7 @@ class Twig_Tests_TemplateTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Runtime
|
||||
* @expectedException \Twig_Error_Runtime
|
||||
* @expectedExceptionMessage Block "unknown" on template "index.twig" does not exist in "index.twig".
|
||||
*/
|
||||
public function testRenderBlockWithUndefinedBlock()
|
||||
@@ -126,7 +126,7 @@ class Twig_Tests_TemplateTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Runtime
|
||||
* @expectedException \Twig_Error_Runtime
|
||||
* @expectedExceptionMessage Block "unknown" on template "index.twig" does not exist in "index.twig".
|
||||
*/
|
||||
public function testDisplayBlockWithUndefinedBlock()
|
||||
@@ -137,7 +137,7 @@ class Twig_Tests_TemplateTest extends \PHPUnit\Framework\TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Runtime
|
||||
* @expectedException \Twig_Error_Runtime
|
||||
* @expectedExceptionMessage Block "foo" should not call parent() in "index.twig" as the block does not exist in the parent template "parent.twig"
|
||||
*/
|
||||
public function testDisplayBlockWithUndefinedParentBlock()
|
||||
|
||||
Reference in New Issue
Block a user