Fix bug in style changes for the Use cases on the live site.
[yaffs-website] / vendor / phpunit / phpunit / src / Util / Type.php
1 <?php
2 /*
3  * This file is part of PHPUnit.
4  *
5  * (c) Sebastian Bergmann <sebastian@phpunit.de>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * Utility class for textual type (and value) representation.
13  *
14  * @since Class available since Release 3.0.0
15  */
16 class PHPUnit_Util_Type
17 {
18     public static function isType($type)
19     {
20         return in_array(
21             $type,
22             array(
23             'numeric',
24             'integer',
25             'int',
26             'float',
27             'string',
28             'boolean',
29             'bool',
30             'null',
31             'array',
32             'object',
33             'resource',
34             'scalar'
35             )
36         );
37     }
38 }