TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format\BytesViewHelperTest Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format\BytesViewHelperTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 valueDataProvider ()
 
 renderCorrectlyConvertsAValue ($value, $decimals, $decimalSeparator, $thousandsSeparator, $expected)
 
 renderUsesChildNodesIfValueArgumentIsOmitted ()
 

Protected Attributes

 $viewHelper
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Detailed Description

Test case

Definition at line 17 of file BytesViewHelperTest.php.

Member Function Documentation

◆ renderCorrectlyConvertsAValue()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format\BytesViewHelperTest::renderCorrectlyConvertsAValue (   $value,
  $decimals,
  $decimalSeparator,
  $thousandsSeparator,
  $expected 
)
Parameters
$value
$decimals
$decimalSeparator
$thousandsSeparator
$expected
Test:
valueDataProvider

Definition at line 118 of file BytesViewHelperTest.php.

◆ renderUsesChildNodesIfValueArgumentIsOmitted()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format\BytesViewHelperTest::renderUsesChildNodesIfValueArgumentIsOmitted ( )
Test:

Definition at line 126 of file BytesViewHelperTest.php.

◆ setUp()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format\BytesViewHelperTest::setUp ( )

Definition at line 24 of file BytesViewHelperTest.php.

◆ valueDataProvider()

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format\BytesViewHelperTest::valueDataProvider ( )
Returns
array

Definition at line 31 of file BytesViewHelperTest.php.

Member Data Documentation

◆ $viewHelper

TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format\BytesViewHelperTest::$viewHelper
protected

Definition at line 22 of file BytesViewHelperTest.php.