You are here

public function NumberComparatorTest::getConstructorTestData in Database Sanitize 7

File

vendor/symfony/finder/Tests/Comparator/NumberComparatorTest.php, line 84

Class

NumberComparatorTest

Namespace

Symfony\Component\Finder\Tests\Comparator

Code

public function getConstructorTestData() {
  return array(
    array(
      array(
        '1',
        '0',
        '3.5',
        '33.55',
        '123.456',
        '123456.78',
        '.1',
        '.123',
        '.0',
        '0.0',
        '1.',
        '0.',
        '123.',
        '==1',
        '!=1',
        '<1',
        '>1',
        '<=1',
        '>=1',
        '==1k',
        '==1ki',
        '==1m',
        '==1mi',
        '==1g',
        '==1gi',
        '1k',
        '1ki',
        '1m',
        '1mi',
        '1g',
        '1gi',
      ),
      array(
        false,
        null,
        '',
        ' ',
        'foobar',
        '=1',
        '===1',
        '0 . 1',
        '123 .45',
        '234. 567',
        '..',
        '.0.',
        '0.1.2',
      ),
    ),
  );
}