19 $x =
new EthB(1, array(
'abi' =>
'bool'));
20 $this->assertSame($x->getSchemaType(),
"B");
21 $this->assertSame($x->hexVal(),
'0x0000000000000000000000000000000000000000000000000000000000000001');
22 $this->assertSame($x->val(), TRUE);
32 $this->assertSame($x->hexVal(),
'0x0000000000000000000000000000000000000000000000000000000000000001');
33 $this->assertSame($x->val(), TRUE);
43 $this->assertSame($x->hexVal(),
'0x0000000000000000000000000000000000000000000000000000000000000000');
44 $this->assertSame($x->val(), FALSE);
54 $x =
new EthB(TRUE, array(
'abi' =>
'bool'));
56 $this->assertSame($x->hexVal(),
'0x0000000000000000000000000000000000000000000000000000000000000001');
57 $this->assertSame($x->val(), TRUE);
65 $x =
new EthB(FALSE, array(
'abi' =>
'bool'));
66 $this->assertSame($x->hexVal(),
'0x0000000000000000000000000000000000000000000000000000000000000000');
67 $this->assertSame($x->val(), FALSE);
76 $x =
new EthB(
'0x0000000000000000000000000000000000000000000000000000000000000000');
77 $this->assertSame($x->hexVal(),
'0x0000000000000000000000000000000000000000000000000000000000000000');
78 $this->assertSame($x->val(), FALSE);
87 $x =
new EthB(
'0x0000000000000000000000000000000000000000000000000000000000000001', array(
'abi' =>
'bool'));
88 $this->assertSame($x->hexVal(),
'0x0000000000000000000000000000000000000000000000000000000000000001');
89 $this->assertSame($x->val(), TRUE);