You are here

public function CacheTest::falseCastedValuesProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php \Doctrine\Tests\Common\Cache\CacheTest::falseCastedValuesProvider()

The following values get converted to FALSE if you cast them to a boolean.

See also

http://php.net/manual/en/types.comparisons.php

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php, line 298

Class

CacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function falseCastedValuesProvider() {
  return array(
    array(
      false,
    ),
    array(
      null,
    ),
    array(
      array(),
    ),
    array(
      '0',
    ),
    array(
      0,
    ),
    array(
      0.0,
    ),
    array(
      '',
    ),
  );
}