Type.php in Zircon Profile 8
Same filename in this branch
Same filename and directory in other branches
File
vendor/phpunit/phpunit/src/Util/Type.phpView source
<?php
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Utility class for textual type (and value) representation.
*
* @since Class available since Release 3.0.0
*/
class PHPUnit_Util_Type {
public static function isType($type) {
return in_array($type, array(
'numeric',
'integer',
'int',
'float',
'string',
'boolean',
'bool',
'null',
'array',
'object',
'resource',
'scalar',
));
}
}
Classes
Name | Description |
---|---|
PHPUnit_Util_Type | Utility class for textual type (and value) representation. |