You are here

public static function PHPUnit_Util_Type::isType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/Type.php \PHPUnit_Util_Type::isType()
2 calls to PHPUnit_Util_Type::isType()
PHPUnit_Framework_Assert::assertContainsOnly in vendor/phpunit/phpunit/src/Framework/Assert.php
Asserts that a haystack contains only values of a given type.
PHPUnit_Framework_Assert::assertNotContainsOnly in vendor/phpunit/phpunit/src/Framework/Assert.php
Asserts that a haystack does not contain only values of a given type.

File

vendor/phpunit/phpunit/src/Util/Type.php, line 18

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