Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
Select version
•
All
Classes
Namespaces
Files
Functions
Variables
Modules
Pages
EthereumStaticTest.php
Go to the documentation of this file.
1
<?php
2
namespace
Ethereum
;
3
use
Ethereum\TestStatic
;
4
use
Ethereum\DataType\EthD32
;
5
11
class
EthereumStaticTest
extends
TestStatic
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
}
TestStatic
Ethereum\DataType\EthD32
Definition:
EthD32.php:12
Ethereum\EthereumStaticTest\testValueArray
testValueArray()
Definition:
EthereumStaticTest.php:13
Ethereum\EthereumStaticTest
Definition:
EthereumStaticTest.php:11
EthD32
Ethereum\TestStatic
Definition:
TestStatic.php:31
Ethereum
Definition:
Abi.php:3
tests
EthTest
Unit
EthereumStaticTest.php
Generated by
1.8.13