Documentation

TemplateEngineUnitTest extends TestCase
in package

Table of Contents

__construct()  : mixed
Constructor
macroTestsData()  : array<string|int, mixed>
Data provider for testMacro
testCompileSwitch()  : void
Testing 'compileSwitch' method
testMacro()  : void
Method tests switch macro
testSimpleSubstitutionsArray()  : void
Simple vars
testSimpleSubstitutionsInvalidObjects()  : void
Invalid objects
testSimpleSubstitutionsObject()  : void
Simple vars

Methods

__construct()

Constructor

public __construct([string $name = null ][, array<string|int, mixed> $data = [] ][, string $dataName = '' ]) : mixed
Parameters
$name : string = null
$data : array<string|int, mixed> = []
$dataName : string = ''
Return values
mixed

macroTestsData()

Data provider for testMacro

public macroTestsData() : array<string|int, mixed>
Return values
array<string|int, mixed>

data sets

testCompileSwitch()

Testing 'compileSwitch' method

public testCompileSwitch() : void
Return values
void

testMacro()

Method tests switch macro

public testMacro(string $str, array<string|int, mixed> $data, string $result) : void
Parameters
$str : string
$data : array<string|int, mixed>
$result : string
Tags
dataProvider

macroTestsData

Return values
void

testSimpleSubstitutionsArray()

Simple vars

public testSimpleSubstitutionsArray() : void
Return values
void

testSimpleSubstitutionsInvalidObjects()

Invalid objects

public testSimpleSubstitutionsInvalidObjects() : void
Return values
void

testSimpleSubstitutionsObject()

Simple vars

public testSimpleSubstitutionsObject() : void
Return values
void

Search results

    Яндекс.Метрика