PHP Class Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Format\CaseViewHelperTest

Exibir arquivo Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$originalMbEncodingValue string Holds the initial mb_internal_encoding value found on this system in order to restore it after the tests
$viewHelper Neos\FluidAdaptor\ViewHelpers\Format\CaseViewHelper

Public Methods

Method Description
conversionTestingDataProvider ( ) Signature: $input, $mode, $expected
setUp ( )
viewHelperConvertsCorrectly ( $input, $mode, $expected )
viewHelperConvertsUppercasePerDefault ( )
viewHelperDoesNotRenderChildrenIfGivenValueIsNotNull ( )
viewHelperRendersChildrenIfGivenValueIsNull ( )
viewHelperRestoresMbInternalEncodingAfterExceptionOccurred ( )
viewHelperRestoresMbInternalEncodingValueAfterInvocation ( )
viewHelperThrowsExceptionIfIncorrectModeIsGiven ( )

Protected Methods

Method Description
tearDown ( )

Method Details

conversionTestingDataProvider() public method

Signature: $input, $mode, $expected

setUp() public method

public setUp ( )

tearDown() protected method

protected tearDown ( )

viewHelperConvertsCorrectly() public method

public viewHelperConvertsCorrectly ( $input, $mode, $expected )

viewHelperConvertsUppercasePerDefault() public method

viewHelperDoesNotRenderChildrenIfGivenValueIsNotNull() public method

viewHelperRendersChildrenIfGivenValueIsNull() public method

viewHelperRestoresMbInternalEncodingAfterExceptionOccurred() public method

viewHelperRestoresMbInternalEncodingValueAfterInvocation() public method

viewHelperThrowsExceptionIfIncorrectModeIsGiven() public method

Property Details

$originalMbEncodingValue protected_oe property

Holds the initial mb_internal_encoding value found on this system in order to restore it after the tests
protected string $originalMbEncodingValue
return string

$viewHelper protected_oe property

protected CaseViewHelper,Neos\FluidAdaptor\ViewHelpers\Format $viewHelper
return Neos\FluidAdaptor\ViewHelpers\Format\CaseViewHelper