@@ -30,7 +30,8 @@ $helper->line();
3030
3131$helper->header('Accessors');
3232$helper->method_matches($value, 'GetIsolate', $isolate);
33- $helper->method_export($value, 'Name');
33+ $helper->method_export($value, 'Value');
34+ $helper->assert('Name() is undefined', $value->Name() instanceof \V8\UndefinedValue);
3435$helper->assert('GetIdentityHash is integer', gettype($value->GetIdentityHash()), 'integer');
3536$helper->space();
3637
@@ -50,7 +51,8 @@ $helper->line();
5051
5152$helper->header('Accessors');
5253$helper->method_matches($value, 'GetIsolate', $isolate);
53- $helper->method_export($value, 'Name');
54+ $helper->method_export($value, 'Value');
55+ $helper->assert('Name() is undefined', $value->Name() instanceof \V8\UndefinedValue);
5456$helper->assert('GetIdentityHash is integer', gettype($value->GetIdentityHash()), 'integer');
5557$helper->space();
5658
@@ -69,7 +71,8 @@ $helper->line();
6971
7072$helper->header('Accessors');
7173$helper->method_matches($value, 'GetIsolate', $isolate);
72- $helper->method_export($value, 'Name');
74+ $helper->method_export($value, 'Value');
75+ $helper->assert('Name() is String', $value->Name() instanceof \V8\StringValue);
7376$helper->assert('GetIdentityHash is integer', gettype($value->GetIdentityHash()), 'integer');
7477$helper->space();
7578
@@ -93,7 +96,8 @@ $helper->line();
9396
9497$helper->header('Accessors');
9598$helper->method_matches($value, 'GetIsolate', $isolate);
96- $helper->method_export($value, 'Name');
99+ $helper->method_export($value, 'Value');
100+ $helper->assert('Name() is String', $value->Name() instanceof \V8\StringValue);
97101$helper->assert('GetIdentityHash is integer', gettype($value->GetIdentityHash()), 'integer');
98102$helper->space();
99103
@@ -186,12 +190,8 @@ SymbolValue extends Value: ok
186190Accessors:
187191----------
188192V8\SymbolValue::GetIsolate() matches expected value
189- V8\SymbolValue->Name():
190- object(V8\UndefinedValue)#92 (1) {
191- ["isolate":"V8\Value":private]=>
192- object(V8\Isolate)#3 (0) {
193- }
194- }
193+ V8\SymbolValue->Value(): string(0) ""
194+ Name() is undefined: ok
195195GetIdentityHash is integer: ok
196196
197197
@@ -266,12 +266,8 @@ SymbolValue extends NameValue: ok
266266Accessors:
267267----------
268268V8\SymbolValue::GetIsolate() matches expected value
269- V8\SymbolValue->Name():
270- object(V8\UndefinedValue)#7 (1) {
271- ["isolate":"V8\Value":private]=>
272- object(V8\Isolate)#3 (0) {
273- }
274- }
269+ V8\SymbolValue->Value(): string(0) ""
270+ Name() is undefined: ok
275271GetIdentityHash is integer: ok
276272
277273
@@ -334,7 +330,7 @@ Empty StringValue constructor:
334330
335331Object representation:
336332----------------------
337- object(V8\SymbolValue)#7 (1) {
333+ object(V8\SymbolValue)#5 (1) {
338334 ["isolate":"V8\Value":private]=>
339335 object(V8\Isolate)#3 (0) {
340336 }
@@ -346,12 +342,8 @@ SymbolValue extends NameValue: ok
346342Accessors:
347343----------
348344V8\SymbolValue::GetIsolate() matches expected value
349- V8\SymbolValue->Name():
350- object(V8\StringValue)#8 (1) {
351- ["isolate":"V8\Value":private]=>
352- object(V8\Isolate)#3 (0) {
353- }
354- }
345+ V8\SymbolValue->Value(): string(0) ""
346+ Name() is String: ok
355347GetIdentityHash is integer: ok
356348
357349
@@ -418,7 +410,7 @@ Non-empty StringValue constructor:
418410
419411Object representation:
420412----------------------
421- object(V8\SymbolValue)#8 (1) {
413+ object(V8\SymbolValue)#4 (1) {
422414 ["isolate":"V8\Value":private]=>
423415 object(V8\Isolate)#3 (0) {
424416 }
@@ -430,12 +422,8 @@ SymbolValue extends NameValue: ok
430422Accessors:
431423----------
432424V8\SymbolValue::GetIsolate() matches expected value
433- V8\SymbolValue->Name():
434- object(V8\StringValue)#93 (1) {
435- ["isolate":"V8\Value":private]=>
436- object(V8\Isolate)#3 (0) {
437- }
438- }
425+ V8\SymbolValue->Value(): string(4) "test"
426+ Name() is String: ok
439427GetIdentityHash is integer: ok
440428
441429
0 commit comments