public function testIsNumber()
 {
     foreach ($this->types as $type => $standard) {
         $typeReflection = new TypeReflection($type);
         $this->assertSame(in_array($type, ['int', 'integer', 'long', 'float', 'double', 'real']), $typeReflection->isNumber(), $type);
     }
 }
Beispiel #2
0
 public function testIsNumberWithDouble()
 {
     $typeReflection = new TypeReflection('double');
     $this->assertTrue($typeReflection->isNumber());
 }