23 '0000000000000000000000000000000000000000000000000000000000000009'.
24 '6761766f66796f726b0000000000000000000000000000000000000000000000' 32 '0000000000000000000000000000000000000000000000000000000000000008'.
33 'c383c2a4c383c2a4000000000000000000000000000000000000000000000000' 41 '0000000000000000000000000000000000000000000000000000000000000002'.
42 'c3bc000000000000000000000000000000000000000000000000000000000000' 50 '0000000000000000000000000000000000000000000000000000000000000002'.
51 'c383000000000000000000000000000000000000000000000000000000000000' 59 '000000000000000000000000000000000000000000000000000000000000003e'.
60 '77656c636f6d6520746f20657468657265756d2e2077656c636f6d6520746f20'.
61 '657468657265756d2e2077656c636f6d6520746f20657468657265756d2e0000' 64 'welcome to ethereum. welcome to ethereum. welcome to ethereum.',
69 '000000000000000000000000000000000000000000000000000000000000000b'.
70 '68656c6c6f20776f726c64000000000000000000000000000000000000000000' 78 '0000000000000000000000000000000000000000000000000000000000000017'.
79 '657468657265756d20737ac3a16dc3ad74c3b367c3a970000000000000000000' 82 'ethereum számítógép',
87 '0000000000000000000000000000000000000000000000000000000000000018'.
88 'e4b8bae4bb80e4b988e982a3e4b988e8aea4e79c9fefbc9f0000000000000000' 96 '00000000000000000000000000000000000000000000000000000000000000c2'.
97 '2068656c6c6f20776f726c642068656c6c6f20776f726c642068656c6c6f2077'.
98 '6f726c642068656c6c6f20776f726c64202068656c6c6f20776f726c64206865'.
99 '6c6c6f20776f726c642068656c6c6f20776f726c642068656c6c6f20776f726c'.
100 '64202068656c6c6f20776f726c642068656c6c6f20776f726c642068656c6c6f'.
101 '20776f726c642068656c6c6f20776f726c642068656c6c6f20776f726c642068'.
102 '656c6c6f20776f726c642068656c6c6f20776f726c642068656c6c6f20776f72'.
103 '6c64000000000000000000000000000000000000000000000000000000000000' 106 ' hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world',
111 '000000000000000000000000000000000000000000000000000000000000001f'.
112 '6120726573706f6e736520737472696e672028756e737570706f727465642900' 115 'a response string (unsupported)',
130 $x =
new EthS(
'Hello World');
131 $this->assertEquals($x->val(),
"Hello World");
132 $this->assertEquals($x->getSchemaType(),
"S");
156 $x = EthS::cretateFromRLP(EthereumStatic::ensureHexPrefix($rlpValue));
157 $this->assertEquals($utf8Val, $x->val());
165 $x = EthBytes::cretateFromRLP(EthereumStatic::ensureHexPrefix($rlpValue));
166 $y = $x->convertByAbi(
$abi);
167 $this->assertEquals($utf8Val, $y->val());
175 $x =
new EthS($utf8Val);
176 $y = $x->convertByAbi(
'bytes');
177 $z = EthBytes::cretateFromRLP(EthereumStatic::ensureHexPrefix($rlpValue));
178 $this->assertEquals($y->hexVal(), $z->hexVal());
testEthSTest__create($abi, $rlpValue, $expClass, $utf8Val)
testEthSTest__convertHexDataToHexStr($abi, $rlpValue, $expClass, $utf8Val)
testEthSTest__convertUtf8ToData($abi, $rlpValue, $expClass, $utf8Val)