bool TestExtVariable::test_gettype() { VS(f_gettype(uninit_null()), "NULL"); VS(f_gettype(0), "integer"); VS(f_gettype("test"), "string"); VS(f_gettype(String("hi")), "string"); VS(f_gettype(Array::Create()), "array"); VS(f_gettype(Object(SystemLib::AllocStdClassObject())), "object"); return Count(true); }
bool TestExtVariable::test_gettype() { VS(f_gettype(null), "NULL"); VS(f_gettype(0), "integer"); VS(f_gettype("test"), "string"); VS(f_gettype(String()), "string"); VS(f_gettype(Array()), "array"); VS(f_gettype(Object()), "object"); return Count(true); }