public function tesIsArray()
 {
     foreach ($this->types as $type => $standard) {
         $typeReflection = new TypeReflection($type);
         $this->assertSame(in_array($type, ['array', 'int[]']), $typeReflection->isArray(), $type);
     }
 }
Example #2
0
 public function testIsArrayCapitalized()
 {
     $typeReflection = new TypeReflection('Array');
     $this->assertTrue($typeReflection->isArray());
 }