Skip to content

Instantly share code, notes, and snippets.

/test-report.log Secret

Created January 16, 2017 22:38
Show Gist options
  • Save anonymous/56c27b3b65e44a689c38d999557ae8fd to your computer and use it in GitHub Desktop.
Save anonymous/56c27b3b65e44a689c38d999557ae8fd to your computer and use it in GitHub Desktop.
./test-report.sh | tee test-report.log
FILE: tests/V8DateObject.diff
105+ val: Wed Oct 21 2015 16:29:00 GMT+0000 (GMT)
105- val: Wed Oct 21 2015 09:29:00 GMT-0700 (PDT)
112+ val: Wed Oct 21 2015 16:29:00 GMT+0000 (GMT)
112- val: Wed Oct 21 2015 09:29:00 GMT-0700 (EDT)\n
FILE: tests/V8DateObject.out
Object representation:
----------------------
object(V8\DateObject)#8 (2) {
["isolate":"V8\Value":private]=>
object(V8\Isolate)#3 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
["context":"V8\ObjectValue":private]=>
object(V8\Context)#7 (4) {
["isolate":"V8\Context":private]=>
object(V8\Isolate)#3 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
["extensions":"V8\Context":private]=>
array(0) {
}
["global_template":"V8\Context":private]=>
object(V8\ObjectTemplate)#4 (1) {
["isolate":"V8\Template":private]=>
object(V8\Isolate)#3 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
}
["global_object":"V8\Context":private]=>
NULL
}
}
DateObject extends ObjectValue: ok
Getters:
--------
V8\DateObject->ValueOf(): float(1445444940000)
Checkers:
---------
V8\DateObject(V8\Value)->TypeOf(): V8\StringValue->Value(): string(6) "object"
V8\DateObject(V8\ObjectValue)->IsCallable(): bool(false)
V8\DateObject(V8\ObjectValue)->IsConstructor(): bool(false)
V8\DateObject(V8\Value)->IsUndefined(): bool(false)
V8\DateObject(V8\Value)->IsNull(): bool(false)
V8\DateObject(V8\Value)->IsTrue(): bool(false)
V8\DateObject(V8\Value)->IsFalse(): bool(false)
V8\DateObject(V8\Value)->IsName(): bool(false)
V8\DateObject(V8\Value)->IsString(): bool(false)
V8\DateObject(V8\Value)->IsSymbol(): bool(false)
V8\DateObject(V8\Value)->IsFunction(): bool(false)
V8\DateObject(V8\Value)->IsArray(): bool(false)
V8\DateObject(V8\Value)->IsObject(): bool(true)
V8\DateObject(V8\Value)->IsBoolean(): bool(false)
V8\DateObject(V8\Value)->IsNumber(): bool(false)
V8\DateObject(V8\Value)->IsInt32(): bool(false)
V8\DateObject(V8\Value)->IsUint32(): bool(false)
V8\DateObject(V8\Value)->IsDate(): bool(true)
V8\DateObject(V8\Value)->IsArgumentsObject(): bool(false)
V8\DateObject(V8\Value)->IsBooleanObject(): bool(false)
V8\DateObject(V8\Value)->IsNumberObject(): bool(false)
V8\DateObject(V8\Value)->IsStringObject(): bool(false)
V8\DateObject(V8\Value)->IsSymbolObject(): bool(false)
V8\DateObject(V8\Value)->IsNativeError(): bool(false)
V8\DateObject(V8\Value)->IsRegExp(): bool(false)
val: Wed Oct 21 2015 16:29:00 GMT+0000 (UTC)
typeof val: object
Returned value should be the same:
----------------------------------
Expected value is identical to actual value
Timezone change (with notification to v8):
------------------------------------------
val: Wed Oct 21 2015 16:29:00 GMT+0000 (GMT)
typeof val: object
Expected 1445444940000.0 value is identical to actual value 1445444940000.0
Timezone change (without notification to v8):
---------------------------------------------
val: Wed Oct 21 2015 16:29:00 GMT+0000 (GMT)
typeof val: object
Expected 1445444940000.0 value is identical to actual value 1445444940000.0\n
FILE: tests/V8Int32Value.diff
128+ V8\Int32Value->Value(): int(0)
128- TypeError: Argument 2 passed to V8\Int32Value::__construct() must be of the type integer, float given\n
FILE: tests/V8Int32Value.out
Object representation:
----------------------
object(V8\Int32Value)#2 (1) {
["isolate":"V8\Value":private]=>
object(V8\Isolate)#1 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
}
Int32Value extends IntegerValue: ok
Accessors:
----------
V8\Int32Value::GetIsolate() matches expected value
V8\Int32Value->Value(): int(2147483646)
Checkers:
---------
V8\Int32Value(V8\Value)->TypeOf(): V8\StringValue->Value(): string(6) "number"
V8\Int32Value(V8\Value)->IsUndefined(): bool(false)
V8\Int32Value(V8\Value)->IsNull(): bool(false)
V8\Int32Value(V8\Value)->IsTrue(): bool(false)
V8\Int32Value(V8\Value)->IsFalse(): bool(false)
V8\Int32Value(V8\Value)->IsName(): bool(false)
V8\Int32Value(V8\Value)->IsString(): bool(false)
V8\Int32Value(V8\Value)->IsSymbol(): bool(false)
V8\Int32Value(V8\Value)->IsFunction(): bool(false)
V8\Int32Value(V8\Value)->IsArray(): bool(false)
V8\Int32Value(V8\Value)->IsObject(): bool(false)
V8\Int32Value(V8\Value)->IsBoolean(): bool(false)
V8\Int32Value(V8\Value)->IsNumber(): bool(true)
V8\Int32Value(V8\Value)->IsInt32(): bool(true)
V8\Int32Value(V8\Value)->IsUint32(): bool(true)
V8\Int32Value(V8\Value)->IsDate(): bool(false)
V8\Int32Value(V8\Value)->IsArgumentsObject(): bool(false)
V8\Int32Value(V8\Value)->IsBooleanObject(): bool(false)
V8\Int32Value(V8\Value)->IsNumberObject(): bool(false)
V8\Int32Value(V8\Value)->IsStringObject(): bool(false)
V8\Int32Value(V8\Value)->IsSymbolObject(): bool(false)
V8\Int32Value(V8\Value)->IsNativeError(): bool(false)
V8\Int32Value(V8\Value)->IsRegExp(): bool(false)
V8\Int32Value::ToString() converting:
-------------------------------------
object(V8\StringValue)#52 (1) {
["isolate":"V8\Value":private]=>
object(V8\Isolate)#1 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
}
string(10) "2147483646"
Primitive converters:
---------------------
V8\Int32Value(V8\Value)->BooleanValue(): bool(true)
V8\Int32Value(V8\Value)->NumberValue(): float(2147483646)
Test negative value in constructor:
-----------------------------------
V8\Int32Value->Value(): int(-123)
V8\Int32Value(V8\Value)->BooleanValue(): bool(true)
V8\Int32Value(V8\Value)->NumberValue(): float(-123)
Checkers for negative:
----------------------
V8\Int32Value(V8\Value)->TypeOf(): V8\StringValue->Value(): string(6) "number"
V8\Int32Value(V8\Value)->IsUndefined(): bool(false)
V8\Int32Value(V8\Value)->IsNull(): bool(false)
V8\Int32Value(V8\Value)->IsTrue(): bool(false)
V8\Int32Value(V8\Value)->IsFalse(): bool(false)
V8\Int32Value(V8\Value)->IsName(): bool(false)
V8\Int32Value(V8\Value)->IsString(): bool(false)
V8\Int32Value(V8\Value)->IsSymbol(): bool(false)
V8\Int32Value(V8\Value)->IsFunction(): bool(false)
V8\Int32Value(V8\Value)->IsArray(): bool(false)
V8\Int32Value(V8\Value)->IsObject(): bool(false)
V8\Int32Value(V8\Value)->IsBoolean(): bool(false)
V8\Int32Value(V8\Value)->IsNumber(): bool(true)
V8\Int32Value(V8\Value)->IsInt32(): bool(true)
V8\Int32Value(V8\Value)->IsUint32(): bool(false)
V8\Int32Value(V8\Value)->IsDate(): bool(false)
V8\Int32Value(V8\Value)->IsArgumentsObject(): bool(false)
V8\Int32Value(V8\Value)->IsBooleanObject(): bool(false)
V8\Int32Value(V8\Value)->IsNumberObject(): bool(false)
V8\Int32Value(V8\Value)->IsStringObject(): bool(false)
V8\Int32Value(V8\Value)->IsSymbolObject(): bool(false)
V8\Int32Value(V8\Value)->IsNativeError(): bool(false)
V8\Int32Value(V8\Value)->IsRegExp(): bool(false)
Int32 is same as Integer - int32, so test for out-of-range (INT32_MIN-INT32_MAX):
---------------------------------------------------------------------------------
integer: 9223372036854775807
V8\Exceptions\ValueException: Int32 value to set is out of range
integer: -9223372036854775807
V8\Exceptions\ValueException: Int32 value to set is out of range
double: NAN
V8\Int32Value->Value(): int(0)
double: INF
TypeError: Argument 2 passed to V8\Int32Value::__construct() must be of the type integer, float given
double: -INF
TypeError: Argument 2 passed to V8\Int32Value::__construct() must be of the type integer, float given\n
FILE: tests/V8IntegerValue.diff
128+ V8\IntegerValue->Value(): int(0)
128- TypeError: Argument 2 passed to V8\IntegerValue::__construct() must be of the type integer, float given\n
FILE: tests/V8IntegerValue.out
Object representation:
----------------------
object(V8\IntegerValue)#2 (1) {
["isolate":"V8\Value":private]=>
object(V8\Isolate)#1 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
}
IntegerValue extends NumberValue: ok
Accessors:
----------
V8\IntegerValue::GetIsolate() matches expected value
V8\IntegerValue->Value(): int(123)
Checkers:
---------
V8\IntegerValue(V8\Value)->TypeOf(): V8\StringValue->Value(): string(6) "number"
V8\IntegerValue(V8\Value)->IsUndefined(): bool(false)
V8\IntegerValue(V8\Value)->IsNull(): bool(false)
V8\IntegerValue(V8\Value)->IsTrue(): bool(false)
V8\IntegerValue(V8\Value)->IsFalse(): bool(false)
V8\IntegerValue(V8\Value)->IsName(): bool(false)
V8\IntegerValue(V8\Value)->IsString(): bool(false)
V8\IntegerValue(V8\Value)->IsSymbol(): bool(false)
V8\IntegerValue(V8\Value)->IsFunction(): bool(false)
V8\IntegerValue(V8\Value)->IsArray(): bool(false)
V8\IntegerValue(V8\Value)->IsObject(): bool(false)
V8\IntegerValue(V8\Value)->IsBoolean(): bool(false)
V8\IntegerValue(V8\Value)->IsNumber(): bool(true)
V8\IntegerValue(V8\Value)->IsInt32(): bool(true)
V8\IntegerValue(V8\Value)->IsUint32(): bool(true)
V8\IntegerValue(V8\Value)->IsDate(): bool(false)
V8\IntegerValue(V8\Value)->IsArgumentsObject(): bool(false)
V8\IntegerValue(V8\Value)->IsBooleanObject(): bool(false)
V8\IntegerValue(V8\Value)->IsNumberObject(): bool(false)
V8\IntegerValue(V8\Value)->IsStringObject(): bool(false)
V8\IntegerValue(V8\Value)->IsSymbolObject(): bool(false)
V8\IntegerValue(V8\Value)->IsNativeError(): bool(false)
V8\IntegerValue(V8\Value)->IsRegExp(): bool(false)
V8\IntegerValue::ToString() converting:
---------------------------------------
object(V8\StringValue)#52 (1) {
["isolate":"V8\Value":private]=>
object(V8\Isolate)#1 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
}
string(3) "123"
Primitive converters:
---------------------
V8\IntegerValue(V8\Value)->BooleanValue(): bool(true)
V8\IntegerValue(V8\Value)->NumberValue(): float(123)
Test negative value in constructor:
-----------------------------------
V8\IntegerValue->Value(): int(-123)
V8\IntegerValue(V8\Value)->BooleanValue(): bool(true)
V8\IntegerValue(V8\Value)->NumberValue(): float(-123)
Checkers for negative:
----------------------
V8\IntegerValue(V8\Value)->TypeOf(): V8\StringValue->Value(): string(6) "number"
V8\IntegerValue(V8\Value)->IsUndefined(): bool(false)
V8\IntegerValue(V8\Value)->IsNull(): bool(false)
V8\IntegerValue(V8\Value)->IsTrue(): bool(false)
V8\IntegerValue(V8\Value)->IsFalse(): bool(false)
V8\IntegerValue(V8\Value)->IsName(): bool(false)
V8\IntegerValue(V8\Value)->IsString(): bool(false)
V8\IntegerValue(V8\Value)->IsSymbol(): bool(false)
V8\IntegerValue(V8\Value)->IsFunction(): bool(false)
V8\IntegerValue(V8\Value)->IsArray(): bool(false)
V8\IntegerValue(V8\Value)->IsObject(): bool(false)
V8\IntegerValue(V8\Value)->IsBoolean(): bool(false)
V8\IntegerValue(V8\Value)->IsNumber(): bool(true)
V8\IntegerValue(V8\Value)->IsInt32(): bool(true)
V8\IntegerValue(V8\Value)->IsUint32(): bool(false)
V8\IntegerValue(V8\Value)->IsDate(): bool(false)
V8\IntegerValue(V8\Value)->IsArgumentsObject(): bool(false)
V8\IntegerValue(V8\Value)->IsBooleanObject(): bool(false)
V8\IntegerValue(V8\Value)->IsNumberObject(): bool(false)
V8\IntegerValue(V8\Value)->IsStringObject(): bool(false)
V8\IntegerValue(V8\Value)->IsSymbolObject(): bool(false)
V8\IntegerValue(V8\Value)->IsNativeError(): bool(false)
V8\IntegerValue(V8\Value)->IsRegExp(): bool(false)
Integer is int32, so test for out-of-range (INT32_MIN-INT32_MAX):
-----------------------------------------------------------------
integer: 9223372036854775807
V8\Exceptions\ValueException: Integer value to set is out of range
integer: -9223372036854775807
V8\Exceptions\ValueException: Integer value to set is out of range
double: NAN
V8\IntegerValue->Value(): int(0)
double: INF
TypeError: Argument 2 passed to V8\IntegerValue::__construct() must be of the type integer, float given
double: -INF
TypeError: Argument 2 passed to V8\IntegerValue::__construct() must be of the type integer, float given\n
FILE: tests/V8Uint32Value.diff
097+ V8\Uint32Value->Value(): int(0)
097- TypeError: Argument 2 passed to V8\Uint32Value::__construct() must be of the type integer, float given\n
FILE: tests/V8Uint32Value.out
Object representation:
----------------------
object(V8\Uint32Value)#4 (1) {
["isolate":"V8\Value":private]=>
object(V8\Isolate)#3 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
}
Uint32Value extends IntegerValue: ok
Accessors:
----------
V8\Uint32Value::GetIsolate() matches expected value
V8\Uint32Value->Value(): int(2147483648)
Checkers for negative:
----------------------
V8\Uint32Value(V8\Value)->TypeOf(): V8\StringValue->Value(): string(6) "number"
V8\Uint32Value(V8\Value)->IsUndefined(): bool(false)
V8\Uint32Value(V8\Value)->IsNull(): bool(false)
V8\Uint32Value(V8\Value)->IsTrue(): bool(false)
V8\Uint32Value(V8\Value)->IsFalse(): bool(false)
V8\Uint32Value(V8\Value)->IsName(): bool(false)
V8\Uint32Value(V8\Value)->IsString(): bool(false)
V8\Uint32Value(V8\Value)->IsSymbol(): bool(false)
V8\Uint32Value(V8\Value)->IsFunction(): bool(false)
V8\Uint32Value(V8\Value)->IsArray(): bool(false)
V8\Uint32Value(V8\Value)->IsObject(): bool(false)
V8\Uint32Value(V8\Value)->IsBoolean(): bool(false)
V8\Uint32Value(V8\Value)->IsNumber(): bool(true)
V8\Uint32Value(V8\Value)->IsInt32(): bool(false)
V8\Uint32Value(V8\Value)->IsUint32(): bool(true)
V8\Uint32Value(V8\Value)->IsDate(): bool(false)
V8\Uint32Value(V8\Value)->IsArgumentsObject(): bool(false)
V8\Uint32Value(V8\Value)->IsBooleanObject(): bool(false)
V8\Uint32Value(V8\Value)->IsNumberObject(): bool(false)
V8\Uint32Value(V8\Value)->IsStringObject(): bool(false)
V8\Uint32Value(V8\Value)->IsSymbolObject(): bool(false)
V8\Uint32Value(V8\Value)->IsNativeError(): bool(false)
V8\Uint32Value(V8\Value)->IsRegExp(): bool(false)
V8\Uint32Value::ToString() converting:
--------------------------------------
object(V8\StringValue)#52 (1) {
["isolate":"V8\Value":private]=>
object(V8\Isolate)#3 (5) {
["snapshot":"V8\Isolate":private]=>
NULL
["time_limit":"V8\Isolate":private]=>
float(0)
["time_limit_hit":"V8\Isolate":private]=>
bool(false)
["memory_limit":"V8\Isolate":private]=>
int(0)
["memory_limit_hit":"V8\Isolate":private]=>
bool(false)
}
}
string(10) "2147483648"
Primitive converters:
---------------------
V8\Uint32Value(V8\Value)->BooleanValue(): bool(true)
V8\Uint32Value(V8\Value)->NumberValue(): float(2147483648)
Uint32 is unsingned int32 value, so test for out-of-range (0-UINT32_MAX):
-------------------------------------------------------------------------
integer: -1
V8\Exceptions\ValueException: Uint32 value to set is out of range
integer: 9223372036854775807
V8\Exceptions\ValueException: Uint32 value to set is out of range
integer: -9223372036854775807
V8\Exceptions\ValueException: Uint32 value to set is out of range
double: NAN
V8\Uint32Value->Value(): int(0)
double: INF
TypeError: Argument 2 passed to V8\Uint32Value::__construct() must be of the type integer, float given
double: -INF
TypeError: Argument 2 passed to V8\Uint32Value::__construct() must be of the type integer, float given\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment