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); } }
public function testIsNumberWithDouble() { $typeReflection = new TypeReflection('double'); $this->assertTrue($typeReflection->isNumber()); }