Exemplo n.º 1
0
 public function testIsInteger()
 {
     foreach ($this->types as $type => $standard) {
         $typeReflection = new TypeReflection($type);
         $this->assertSame(in_array($type, ['int', 'integer', 'long']), $typeReflection->isInteger(), $type);
     }
 }
Exemplo n.º 2
0
 public function testIsIntegerWithLong()
 {
     $typeReflection = new TypeReflection('long');
     $this->assertTrue($typeReflection->isInteger());
 }