TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\Tests\Unit\Filter\CurrencyFilterTest Class Reference
Inheritance diagram for TYPO3\CMS\Form\Tests\Unit\Filter\CurrencyFilterTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 validDataProvider ()
 
 filterForVariousIntegerInputsReturnsFormattedCurrencyNotation ($input, $thousandSeparator, $decimalPoint, $expected)
 

Protected Attributes

 $fixture
 
- 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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Test case

Author
Andreas Lappe nd@ka.nosp@m.eufl.nosp@m.i.ch

Definition at line 22 of file CurrencyFilterTest.php.

Member Function Documentation

◆ filterForVariousIntegerInputsReturnsFormattedCurrencyNotation()

TYPO3\CMS\Form\Tests\Unit\Filter\CurrencyFilterTest::filterForVariousIntegerInputsReturnsFormattedCurrencyNotation (   $input,
  $thousandSeparator,
  $decimalPoint,
  $expected 
)
Test:
validDataProvider

Definition at line 106 of file CurrencyFilterTest.php.

◆ setUp()

TYPO3\CMS\Form\Tests\Unit\Filter\CurrencyFilterTest::setUp ( )

Definition at line 29 of file CurrencyFilterTest.php.

◆ validDataProvider()

TYPO3\CMS\Form\Tests\Unit\Filter\CurrencyFilterTest::validDataProvider ( )

Data provider for filterForVariousIntegerInputsReturnsFormattedCurrencyNotation Each data set is an array with the following elements:

  • input value
  • thousand separator character
  • decimal point character
  • expected result
Returns
array

Definition at line 43 of file CurrencyFilterTest.php.

Member Data Documentation

◆ $fixture

TYPO3\CMS\Form\Tests\Unit\Filter\CurrencyFilterTest::$fixture
protected

Definition at line 27 of file CurrencyFilterTest.php.