You are here

public function IntervalTest::getTests in Plug 7

File

lib/Symfony/translation/Tests/IntervalTest.php, line 34

Class

IntervalTest

Namespace

Symfony\Component\Translation\Tests

Code

public function getTests() {
  return array(
    array(
      true,
      3,
      '{1,2, 3 ,4}',
    ),
    array(
      false,
      10,
      '{1,2, 3 ,4}',
    ),
    array(
      false,
      3,
      '[1,2]',
    ),
    array(
      true,
      1,
      '[1,2]',
    ),
    array(
      true,
      2,
      '[1,2]',
    ),
    array(
      false,
      1,
      ']1,2[',
    ),
    array(
      false,
      2,
      ']1,2[',
    ),
    array(
      true,
      log(0),
      '[-Inf,2[',
    ),
    array(
      true,
      -log(0),
      '[-2,+Inf]',
    ),
  );
}