You are here

public function IsNullValidatorTest::getInvalidValues in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/IsNullValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\IsNullValidatorTest::getInvalidValues()

File

vendor/symfony/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',
    ),
  );
}