You are here

Type.php in Zircon Profile 8

File

vendor/phpunit/phpunit/src/Util/Type.php
View 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

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