Documentation

Twig_Tests_TemplateTest extends TestCase
in package

Table of Contents

getAttributeExceptions()  : mixed
getGetAttributeTests()  : mixed
getGetAttributeWithSandbox()  : mixed
testDisplayBlocksAcceptTemplateOnlyAsBlocks()  : mixed
testDisplayBlockWithUndefinedBlock()  : mixed
testDisplayBlockWithUndefinedParentBlock()  : mixed
testGetAttribute()  : mixed
testGetAttributeCallExceptions()  : mixed
testGetAttributeDefined()  : mixed
testGetAttributeDefinedStrict()  : mixed
testGetAttributeExceptions()  : mixed
testGetAttributeOnArrayWithConfusableKey()  : mixed
testGetAttributeStrict()  : mixed
testGetAttributeWithSandbox()  : mixed
testGetIsMethods()  : mixed
testRenderBlockWithUndefinedBlock()  : mixed

Methods

getAttributeExceptions()

public getAttributeExceptions() : mixed
Return values
mixed

getGetAttributeTests()

public getGetAttributeTests() : mixed
Return values
mixed

getGetAttributeWithSandbox()

public getGetAttributeWithSandbox() : mixed
Return values
mixed

testDisplayBlocksAcceptTemplateOnlyAsBlocks()

public testDisplayBlocksAcceptTemplateOnlyAsBlocks() : mixed
Tags
expectedException

\LogicException

Return values
mixed

testDisplayBlockWithUndefinedBlock()

public testDisplayBlockWithUndefinedBlock() : mixed
Tags
expectedException

\Twig\Error\RuntimeError

expectedExceptionMessage

Block "unknown" on template "index.twig" does not exist in "index.twig".

Return values
mixed

testDisplayBlockWithUndefinedParentBlock()

public testDisplayBlockWithUndefinedParentBlock() : mixed
Tags
expectedException

\Twig\Error\RuntimeError

expectedExceptionMessage

Block "foo" should not call parent() in "index.twig" as the block does not exist in the parent template "parent.twig"

Return values
mixed

testGetAttribute()

public testGetAttribute(mixed $defined, mixed $value, mixed $object, mixed $item, mixed $arguments, mixed $type) : mixed
Parameters
$defined : mixed
$value : mixed
$object : mixed
$item : mixed
$arguments : mixed
$type : mixed
Tags
dataProvider

getGetAttributeTests

Return values
mixed

testGetAttributeCallExceptions()

public testGetAttributeCallExceptions() : mixed
Return values
mixed

testGetAttributeDefined()

public testGetAttributeDefined(mixed $defined, mixed $value, mixed $object, mixed $item, mixed $arguments, mixed $type) : mixed
Parameters
$defined : mixed
$value : mixed
$object : mixed
$item : mixed
$arguments : mixed
$type : mixed
Tags
dataProvider

getGetAttributeTests

Return values
mixed

testGetAttributeDefinedStrict()

public testGetAttributeDefinedStrict(mixed $defined, mixed $value, mixed $object, mixed $item, mixed $arguments, mixed $type) : mixed
Parameters
$defined : mixed
$value : mixed
$object : mixed
$item : mixed
$arguments : mixed
$type : mixed
Tags
dataProvider

getGetAttributeTests

Return values
mixed

testGetAttributeExceptions()

public testGetAttributeExceptions(mixed $template, mixed $message) : mixed
Parameters
$template : mixed
$message : mixed
Tags
dataProvider

getAttributeExceptions

Return values
mixed

testGetAttributeOnArrayWithConfusableKey()

public testGetAttributeOnArrayWithConfusableKey() : mixed
Return values
mixed

testGetAttributeStrict()

public testGetAttributeStrict(mixed $defined, mixed $value, mixed $object, mixed $item, mixed $arguments, mixed $type[, mixed $exceptionMessage = null ]) : mixed
Parameters
$defined : mixed
$value : mixed
$object : mixed
$item : mixed
$arguments : mixed
$type : mixed
$exceptionMessage : mixed = null
Tags
dataProvider

getGetAttributeTests

Return values
mixed

testGetAttributeWithSandbox()

public testGetAttributeWithSandbox(mixed $object, mixed $item, mixed $allowed) : mixed
Parameters
$object : mixed
$item : mixed
$allowed : mixed
Tags
dataProvider

getGetAttributeWithSandbox

Return values
mixed

testGetIsMethods()

public testGetIsMethods() : mixed
Tags
expectedException

\Twig\Error\RuntimeError

Return values
mixed

testRenderBlockWithUndefinedBlock()

public testRenderBlockWithUndefinedBlock() : mixed
Tags
expectedException

\Twig\Error\RuntimeError

expectedExceptionMessage

Block "unknown" on template "index.twig" does not exist in "index.twig".

Return values
mixed

Search results