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

Public Member Functions

 validIntegerNumbers ()
 
 invalidIntegerNumbers ()
 
 integerValidatorReturnsTrueForAValidInteger ($number)
 
 integerValidatorReturnsFalseForAnInvalidInteger ($number)
 
 integerValidatorCreatesTheCorrectErrorForAnInvalidSubject ()
 

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 IntegerValidatorTest.php.

Member Function Documentation

◆ integerValidatorCreatesTheCorrectErrorForAnInvalidSubject()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\IntegerValidatorTest::integerValidatorCreatesTheCorrectErrorForAnInvalidSubject ( )
Test:

Definition at line 80 of file IntegerValidatorTest.php.

◆ integerValidatorReturnsFalseForAnInvalidInteger()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\IntegerValidatorTest::integerValidatorReturnsFalseForAnInvalidInteger (   $number)
Test:
invalidIntegerNumbers
Parameters
mixed$number

Definition at line 71 of file IntegerValidatorTest.php.

◆ integerValidatorReturnsTrueForAValidInteger()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\IntegerValidatorTest::integerValidatorReturnsTrueForAValidInteger (   $number)
Test:
validIntegerNumbers
Parameters
mixed$number

Definition at line 60 of file IntegerValidatorTest.php.

◆ invalidIntegerNumbers()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\IntegerValidatorTest::invalidIntegerNumbers ( )

Data provider with invalid integer numbers

Returns
array Various values of int, float and strings

Definition at line 45 of file IntegerValidatorTest.php.

◆ validIntegerNumbers()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\BeforeExtbase14\IntegerValidatorTest::validIntegerNumbers ( )

Data provider with valid integer numbers

Returns
array Integers, both as int and strings

Definition at line 30 of file IntegerValidatorTest.php.