Ejemplo n.º 1
0
 public function testIsFloat()
 {
     foreach ($this->types as $type => $standard) {
         $typeReflection = new TypeReflection($type);
         $this->assertSame(in_array($type, ['float', 'double', 'real']), $typeReflection->isFloat(), $type);
     }
 }
Ejemplo n.º 2
0
 public function testIsFloatWithDouble()
 {
     $typeReflection = new TypeReflection('double');
     $this->assertTrue($typeReflection->isFloat());
 }