You are here

public function IsNullValidatorTest::getInvalidValues in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/IsNullValidatorTest.php, line 53

Class

IsNullValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getInvalidValues() {
  return array(
    array(
      0,
      '0',
    ),
    array(
      false,
      'false',
    ),
    array(
      true,
      'true',
    ),
    array(
      '',
      '""',
    ),
    array(
      'foo bar',
      '"foo bar"',
    ),
    array(
      new \DateTime(),
      'object',
    ),
    array(
      new \stdClass(),
      'object',
    ),
    array(
      array(),
      'array',
    ),
  );
}