PHP Class Bolt\Tests\Extension\SnippetsTest

Author: Ross Riley ([email protected])
Inheritance: extends Bolt\Tests\Extension\AbstractExtensionTest
Datei anzeigen Open project: bolt/bolt

Public Properties

Property Type Description
$expectedAfterCss
$expectedAfterMeta
$expectedBeforeCss
$expectedCss
$expectedEndOfHead
$expectedEndOfHtml
$expectedJs
$expectedLateCss
$expectedLateJs
$expectedStartOfBody
$expectedStartOfHead
$snippetException
$template

Public Methods

Method Description
testCommentsHandled ( )
testExtensionSnippets ( )
testSnippet ( )
testSnippetsWithCallback ( )
testSnippetsWithGlobalCallback ( )
testSnippetsWorkWithBadHtml ( )
testTwigExtensions ( )

Protected Methods

Method Description
getApp ( $boot = true )
html ( $string ) This method normalises the html so that differing whitespace doesn't effect the strings.
minify ( $html ) This method does a simple minification of the HTML, as it removes whitespace between tags.

Method Details

getApp() protected method

protected getApp ( $boot = true )

html() protected method

This method normalises the html so that differing whitespace doesn't effect the strings.
protected html ( $string )

minify() protected method

This method does a simple minification of the HTML, as it removes whitespace between tags.
protected minify ( $html )

testCommentsHandled() public method

public testCommentsHandled ( )

testExtensionSnippets() public method

testSnippet() public method

public testSnippet ( )

testSnippetsWithCallback() public method

testSnippetsWithGlobalCallback() public method

testSnippetsWorkWithBadHtml() public method

testTwigExtensions() public method

public testTwigExtensions ( )

Property Details

$expectedAfterCss public_oe property

public $expectedAfterCss

$expectedAfterMeta public_oe property

public $expectedAfterMeta

$expectedBeforeCss public_oe property

public $expectedBeforeCss

$expectedCss public_oe property

public $expectedCss

$expectedEndOfHead public_oe property

public $expectedEndOfHead

$expectedEndOfHtml public_oe property

public $expectedEndOfHtml

$expectedJs public_oe property

public $expectedJs

$expectedLateCss public_oe property

public $expectedLateCss

$expectedLateJs public_oe property

public $expectedLateJs

$expectedStartOfBody public_oe property

public $expectedStartOfBody

$expectedStartOfHead public_oe property

public $expectedStartOfHead

$snippetException public_oe property

public $snippetException

$template public_oe property

public $template