Exemple #1
0
 /**
  * Creates a new instance of IsBoolean
  */
 public function __construct()
 {
     parent::__construct('boolean');
 }
Exemple #2
0
/**
 * Is the value a particular built-in type?
 */
function typeOf($theType)
{
    require_once 'Hamcrest/Core/IsTypeOf.php';
    return Hamcrest_Core_IsTypeOf::typeOf($theType);
}
 protected function createMatcher()
 {
     return Hamcrest_Core_IsTypeOf::typeOf('integer');
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct('scalar');
 }
Exemple #5
0
 /**
  * Creates a new instance of IsArray
  */
 public function __construct()
 {
     parent::__construct('array');
 }
Exemple #6
0
 /**
  * Creates a new instance of IsInteger
  */
 public function __construct()
 {
     parent::__construct('integer');
 }
Exemple #7
0
 /**
  * Creates a new instance of IsObject
  */
 public function __construct()
 {
     parent::__construct('object');
 }
Exemple #8
0
 /**
  * Creates a new instance of IsDouble
  */
 public function __construct()
 {
     parent::__construct('double');
 }
Exemple #9
0
 public function __construct()
 {
     parent::__construct('number');
 }
Exemple #10
0
 /**
  * Creates a new instance of IsCallable
  */
 public function __construct()
 {
     parent::__construct('callable');
 }
Exemple #11
0
 /**
  * Creates a new instance of IsResource
  */
 public function __construct()
 {
     parent::__construct('resource');
 }
Exemple #12
0
 /**
  * Creates a new instance of IsString
  */
 public function __construct()
 {
     parent::__construct('string');
 }