PHP Class Carew\Tests\Twig\NodeVisitor\PaginatorTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: carew/carew

Public Methods

Method Description
getNodeVisitorAlterNothingIfNotNeededTests ( )
testNodeVisitorAddSliceFilterAndPaginationNode ( )
testNodeVisitorAlterNothingIfNotNeeded ( $template )
testNodeVisitorAlterRenderDocumentAndAddSliceFilterAndPaginationNode ( )
testNodeVisitorAlterRenderDocumentAndAddSliceFilterAndPaginationNodeWithManyPaginate ( )
testNodeVisitorThrowExceptionIfFirstArgumentIsNotDefined ( )
testNodeVisitorThrowExceptionIfMaxPerPageValueIsNotAConstant ( )

Private Methods

Method Description
assertNodeFilterHasSlice ( Twig_Node_Expression_Filter $nodeFilter, $maxPerPage, $currentNumberOfPagination )
createEnv ( )

Method Details

getNodeVisitorAlterNothingIfNotNeededTests() public method

testNodeVisitorAddSliceFilterAndPaginationNode() public method

testNodeVisitorAlterNothingIfNotNeeded() public method

testNodeVisitorAlterRenderDocumentAndAddSliceFilterAndPaginationNode() public method

testNodeVisitorAlterRenderDocumentAndAddSliceFilterAndPaginationNodeWithManyPaginate() public method

testNodeVisitorThrowExceptionIfFirstArgumentIsNotDefined() public method

testNodeVisitorThrowExceptionIfMaxPerPageValueIsNotAConstant() public method