public function testIsScalar() { foreach ($this->types as $type => $standard) { $typeReflection = new TypeReflection($type); $this->assertSame(in_array($type, ['bool', 'boolean', 'string', 'int', 'integer', 'long', 'float', 'double', 'real']), $typeReflection->isScalar(), $type); } }
public function testIsScalarWithArray() { $typeReflection = new TypeReflection('array'); $this->assertFalse($typeReflection->isScalar()); }