public function tesIsObject()
 {
     foreach ($this->types as $type => $standard) {
         $typeReflection = new TypeReflection($type);
         $this->assertSame(in_array($type, ['object', 'Datetime']), $typeReflection->isObject(), $type);
     }
 }
示例#2
0
 public function testIsObjectWithNull()
 {
     $typeReflection = new TypeReflection('null');
     $this->assertFalse($typeReflection->isObject());
 }