Documentation

ParserTest extends PHPUnit_Framework_TestCase
in package

Table of Contents

parsedStructureForFile()  : Document
Parse structure for file.
testCalcFailure()  : mixed
testCalcInFile()  : mixed
testCalcNestedInFile()  : mixed
testCharsetFailure1()  : mixed
testCharsetFailure2()  : mixed
testCharsetLenient1()  : mixed
testCharsetLenient2()  : mixed
testColorParsing()  : mixed
testCommentExtracting()  : mixed
testComments()  : mixed
testCreateShorthands()  : mixed
testEmptyFile()  : mixed
testEmptyFileMbOff()  : mixed
testEmptyGridLineNameLenientInFile()  : mixed
testExpandShorthands()  : mixed
testFiles()  : mixed
testFlatCommentExtracting()  : mixed
testFunctionSyntax()  : mixed
testGridLineNameInFile()  : mixed
testHexAlphaInFile()  : mixed
testIeHacksParsing()  : mixed
testIeHacksStrictParsing()  : mixed
testInnerColors()  : mixed
testLineNameFailure()  : mixed
testLineNumbersParsing()  : mixed
testListValueRemoval()  : mixed
testManipulation()  : mixed
testMicrosoftFilterParsing()  : mixed
testMicrosoftFilterStrictParsing()  : mixed
testMissingPropertyValueLenient()  : mixed
Ensure that a missing property value is ignored when in lenient parsing mode.
testMissingPropertyValueStrict()  : mixed
Ensure that a missing property value raises an exception.
testNamespaces()  : mixed
testPrefixedGradient()  : mixed
testRuleGetters()  : mixed
testSelectorRemoval()  : mixed
testSlashedValues()  : mixed
testSpecificity()  : mixed
testTopLevelCommentExtracting()  : mixed
testTrailingWhitespace()  : mixed
testUnexpectedTokenExceptionLineNo()  : mixed
testUnicodeParsing()  : mixed
testUnicodeRangeParsing()  : mixed
testUnmatchedBracesInFile()  : mixed
testUnopenedClosingBracketFailure()  : mixed
testUrlInFile()  : mixed
testUrlInFileMbOff()  : mixed

Methods

parsedStructureForFile()

Parse structure for file.

public parsedStructureForFile(string $sFileName[, null|object $oSettings = null ]) : Document
Parameters
$sFileName : string

Filename.

$oSettings : null|object = null

Settings.

Return values
Document

Parsed document.

testCalcFailure()

public testCalcFailure() : mixed
Tags
expectedException

Sabberworm\CSS\Parsing\UnexpectedTokenException

Return values
mixed

testCalcInFile()

public testCalcInFile() : mixed
Return values
mixed

testCalcNestedInFile()

public testCalcNestedInFile() : mixed
Return values
mixed

testCharsetFailure1()

public testCharsetFailure1() : mixed
Tags
expectedException

\Sabberworm\CSS\Parsing\UnexpectedTokenException

Return values
mixed

testCharsetFailure2()

public testCharsetFailure2() : mixed
Tags
expectedException

\Sabberworm\CSS\Parsing\UnexpectedTokenException

Return values
mixed

testCharsetLenient1()

public testCharsetLenient1() : mixed
Return values
mixed

testCharsetLenient2()

public testCharsetLenient2() : mixed
Return values
mixed

testColorParsing()

public testColorParsing() : mixed
Tags
depends

testFiles

Return values
mixed

testCommentExtracting()

public testCommentExtracting() : mixed
Tags
depends

testFiles

Return values
mixed

testComments()

public testComments() : mixed
Return values
mixed

testCreateShorthands()

public testCreateShorthands() : mixed
Return values
mixed

testEmptyFile()

public testEmptyFile() : mixed
Return values
mixed

testEmptyFileMbOff()

public testEmptyFileMbOff() : mixed
Return values
mixed

testEmptyGridLineNameLenientInFile()

public testEmptyGridLineNameLenientInFile() : mixed
Return values
mixed

testExpandShorthands()

public testExpandShorthands() : mixed
Return values
mixed

testFiles()

public testFiles() : mixed
Return values
mixed

testFlatCommentExtracting()

public testFlatCommentExtracting() : mixed
Return values
mixed

testFunctionSyntax()

public testFunctionSyntax() : mixed
Return values
mixed

testGridLineNameInFile()

public testGridLineNameInFile() : mixed
Return values
mixed

testHexAlphaInFile()

public testHexAlphaInFile() : mixed
Return values
mixed

testIeHacksParsing()

public testIeHacksParsing() : mixed
Return values
mixed

testIeHacksStrictParsing()

public testIeHacksStrictParsing() : mixed
Tags
expectedException

Sabberworm\CSS\Parsing\UnexpectedTokenException

Return values
mixed

testInnerColors()

public testInnerColors() : mixed
Return values
mixed

testLineNameFailure()

public testLineNameFailure() : mixed
Tags
expectedException

Sabberworm\CSS\Parsing\UnexpectedTokenException

Return values
mixed

testLineNumbersParsing()

public testLineNumbersParsing() : mixed
Tags
depends

testFiles

Return values
mixed

testListValueRemoval()

public testListValueRemoval() : mixed
Return values
mixed

testManipulation()

public testManipulation() : mixed
Return values
mixed

testMicrosoftFilterParsing()

public testMicrosoftFilterParsing() : mixed
Return values
mixed

testMicrosoftFilterStrictParsing()

public testMicrosoftFilterStrictParsing() : mixed
Tags
expectedException

Sabberworm\CSS\Parsing\UnexpectedTokenException

Return values
mixed

testMissingPropertyValueLenient()

Ensure that a missing property value is ignored when in lenient parsing mode.

public testMissingPropertyValueLenient() : mixed
Tags
covers
Return values
mixed

testMissingPropertyValueStrict()

Ensure that a missing property value raises an exception.

public testMissingPropertyValueStrict() : mixed
Tags
expectedException

\Sabberworm\CSS\Parsing\UnexpectedTokenException

covers
Return values
mixed

testNamespaces()

public testNamespaces() : mixed
Return values
mixed

testPrefixedGradient()

public testPrefixedGradient() : mixed
Return values
mixed

testRuleGetters()

public testRuleGetters() : mixed
Return values
mixed

testSelectorRemoval()

public testSelectorRemoval() : mixed
Tags
expectedException

Sabberworm\CSS\Parsing\OutputException

Return values
mixed

testSlashedValues()

public testSlashedValues() : mixed
Return values
mixed

testSpecificity()

public testSpecificity() : mixed
Return values
mixed

testTopLevelCommentExtracting()

public testTopLevelCommentExtracting() : mixed
Return values
mixed

testTrailingWhitespace()

public testTrailingWhitespace() : mixed
Return values
mixed

testUnexpectedTokenExceptionLineNo()

public testUnexpectedTokenExceptionLineNo() : mixed
Tags
expectedException

\Sabberworm\CSS\Parsing\UnexpectedTokenException Credit: This test by @sabberworm (from https://github.com/sabberworm/PHP-CSS-Parser/pull/105#issuecomment-229643910 )

Return values
mixed

testUnicodeParsing()

public testUnicodeParsing() : mixed
Return values
mixed

testUnicodeRangeParsing()

public testUnicodeRangeParsing() : mixed
Return values
mixed

testUnmatchedBracesInFile()

public testUnmatchedBracesInFile() : mixed
Return values
mixed

testUnopenedClosingBracketFailure()

public testUnopenedClosingBracketFailure() : mixed
Tags
expectedException

\Sabberworm\CSS\Parsing\SourceException

Return values
mixed

testUrlInFile()

public testUrlInFile() : mixed
Return values
mixed

testUrlInFileMbOff()

public testUrlInFileMbOff() : mixed
Return values
mixed

Search results