Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
EthereumStaticTest.php
Go to the documentation of this file.
1 <?php
2 namespace Ethereum;
5 
12 {
13  public function testValueArray() {
14 
15  // Testing simply data type.
16  $values = [
17  '0xf79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbacd',
18  '0xf79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbac0'
19  ];
20 
21  $this->assertEquals(
22  Ethereum::valueArray($values, 'EthD32'),
23  array(
24  new EthD32('0xf79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbacd'),
25  new EthD32('0xf79e7980a566fec5caf9cf368abb227e537999998541bad324f61cf2906fbac0'),
26  )
27  );
28 
29  }
30 }
Definition: Abi.php:3