19 $x =
new EthD32(
'0xf79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbacd');
20 $this->assertSame($x->val(),
'f79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbacd');
21 $this->assertSame($x->hexVal(),
'0xf79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbacd');
22 $this->assertSame($x->getSchemaType(),
"D32");
29 new EthD32(
'0xf79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbacd86');
30 $this->fail(
"Expected exception '" . $exception_message_expected .
"' not thrown");
32 $this->assertTrue(strpos($exception->getMessage(),
"Invalid length") !==
false);
38 $a =
new EthD32(
'f79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbacd');
39 $this->assertEquals($a->hexVal(),
'0xf79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbacd');
45 $val =
'0xyz116b6e1a6e963efffa30c0a8541075cc51c45';
46 $exception_message_expected =
'A non well formed hex value encountered: ' . $val;
48 $this->fail(
"Expected exception '" . $exception_message_expected .
"' not thrown");
50 $this->assertEquals($exception->getMessage(), $exception_message_expected);
testEthQ__notHexPrefixed()
testEthQ__invalidLengthTooLong()