TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\FloatValidatorTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\FloatValidatorTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 validFloatingPointNumbers ()
 
 invalidFloatingPointNumbers ()
 
 floatValidatorReturnsTrueForAValidFloat ($number)
 
 floatValidatorReturnsFalseForAnInvalidFloat ($number)
 
 floatValidatorCreatesTheCorrectErrorForAnInvalidSubject ()
 

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='')
 
- 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
 

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

This testcase checks the expected behavior for Extbase < 1.4.0, to make sure we do not break backwards compatibility.

Definition at line 23 of file FloatValidatorTest.php.

Member Function Documentation

◆ floatValidatorCreatesTheCorrectErrorForAnInvalidSubject()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\FloatValidatorTest::floatValidatorCreatesTheCorrectErrorForAnInvalidSubject ( )
Test:

Definition at line 82 of file FloatValidatorTest.php.

◆ floatValidatorReturnsFalseForAnInvalidFloat()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\FloatValidatorTest::floatValidatorReturnsFalseForAnInvalidFloat (   $number)
Test:
invalidFloatingPointNumbers
Parameters
mixed$number

Definition at line 73 of file FloatValidatorTest.php.

◆ floatValidatorReturnsTrueForAValidFloat()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\FloatValidatorTest::floatValidatorReturnsTrueForAValidFloat (   $number)
Test:
validFloatingPointNumbers
Parameters
mixed$number

Definition at line 62 of file FloatValidatorTest.php.

◆ invalidFloatingPointNumbers()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\FloatValidatorTest::invalidFloatingPointNumbers ( )

Data provider with valid floating point numbers

Returns
array Floats, both as float and string

Definition at line 47 of file FloatValidatorTest.php.

◆ validFloatingPointNumbers()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\FloatValidatorTest::validFloatingPointNumbers ( )

Data provider with valid floating point numbers

Returns
array Floats, both as float and string

Definition at line 30 of file FloatValidatorTest.php.