Ejemplo n.º 1
0
 public function tesIsBoolean()
 {
     foreach ($this->types as $type => $standard) {
         $typeReflection = new TypeReflection($type);
         $this->assertSame(in_array($type, ['bool', 'boolean']), $typeReflection->isBoolean(), $type);
     }
 }
Ejemplo n.º 2
0
 public function testIsBooleanLong()
 {
     $typeReflection = new TypeReflection('boolean');
     $this->assertTrue($typeReflection->isBoolean());
 }