PHP Class eZ\Publish\Core\REST\Common\Tests\UrlHandler\PatternTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getParseValues ( ) : array Data provider.
testGenerateMissingValue ( ) Test generating URL with missing value.
testGenerateSuperfluousValue ( ) Test generating URL with extra value.
testGenerateUnknownUrlType ( ) Test generating unknown URL type.
testGenerateUrl ( $type, $url, $values ) Data provider.
testParseInvalidPattern ( ) Tests parsing invalid pattern.
testParseUnknownUrlType ( ) Tests parsing unknown URL type.
testParseUrl ( $type, $url, $values ) Test parsing URL.
testPatternDoesNotMatch ( ) Tests parsing when pattern does not match.
testPatternDoesNotMatchTrailing ( ) Test parsing when pattern does not match the end of the URL.

Protected Methods

Method Description
getWorkingUrlHandler ( ) : Pattern Returns the URL handler.

Method Details

getParseValues() public static method

Data provider.
public static getParseValues ( ) : array
return array

getWorkingUrlHandler() protected method

Returns the URL handler.
protected getWorkingUrlHandler ( ) : Pattern
return eZ\Publish\Core\REST\Common\RequestParser\Pattern

testGenerateMissingValue() public method

Test generating URL with missing value.

testGenerateSuperfluousValue() public method

Test generating URL with extra value.

testGenerateUnknownUrlType() public method

Test generating unknown URL type.

testGenerateUrl() public method

Data provider.
public testGenerateUrl ( $type, $url, $values )

testParseInvalidPattern() public method

Tests parsing invalid pattern.

testParseUnknownUrlType() public method

Tests parsing unknown URL type.

testParseUrl() public method

Test parsing URL.
public testParseUrl ( $type, $url, $values )

testPatternDoesNotMatch() public method

Tests parsing when pattern does not match.

testPatternDoesNotMatchTrailing() public method

Test parsing when pattern does not match the end of the URL.