public static function PHPUnit_Util_Type::isType

2 calls to PHPUnit_Util_Type::isType()
PHPUnit_Framework_Assert::assertContainsOnly in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php
Asserts that a haystack contains only values of a given type.
PHPUnit_Framework_Assert::assertNotContainsOnly in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php
Asserts that a haystack does not contain only values of a given type.

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Type.php, line 59

Class

PHPUnit_Util_Type
Utility class for textual type (and value) representation.

Code

public static function isType($type) {
  return in_array($type, array(
    'numeric',
    'integer',
    'int',
    'float',
    'string',
    'boolean',
    'bool',
    'null',
    'array',
    'object',
    'resource',
    'scalar',
  ));
}