Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
MultiReturner Class Reference
+ Inheritance diagram for MultiReturner:
+ Collaboration diagram for MultiReturner:

Public Member Functions

 testGetBoolean ()
 
 testGetInteger ()
 
 testGetBytes1 ()
 
 testGetBytes8 ()
 
 testGetBytes16 ()
 
 testGetBytes32 ()
 
 testGetBytes ()
 
 testGetBytesLong ()
 
 testGetTwoBytes32 ()
 
 testGetDynamicDataMixedTwo ()
 
 testGetDynamicData ()
 
 testGetDynamicTripple ()
 
 testGetDynamicDataMixedOne ()
 
 testUndefinedMethod ()
 
 testGetLotsOfBytes ()
 

Additional Inherited Members

- Static Public Member Functions inherited from TestEthClient
static setUpBeforeClass ()
 
- Protected Attributes inherited from TestEthContract
 $data
 
 $contract
 

Detailed Description

EthereumStaticTest

Definition at line 12 of file MultiReturnerTest.php.

Member Function Documentation

◆ testGetBoolean()

testGetBoolean ( )

NON RLP

function getBoolean() public pure returns (bool) { bool a = true; return (a); }

Definition at line 23 of file MultiReturnerTest.php.

◆ testGetBytes()

testGetBytes ( )

Simple RLP

function getBytes() public pure returns (bytes) { bytes memory a = "\x61\x62\x63"; return (a); }

Definition at line 95 of file MultiReturnerTest.php.

◆ testGetBytes1()

testGetBytes1 ( )

NON RLP

function getBytes1() public pure returns (bytes1) { bytes1 a = "\x61"; return (a); }

Todo:
THIS IS WRONG Solidity will give me a 0x61. So we should cut off at "61"

Definition at line 51 of file MultiReturnerTest.php.

◆ testGetBytes16()

testGetBytes16 ( )

Definition at line 66 of file MultiReturnerTest.php.

◆ testGetBytes32()

testGetBytes32 ( )

NON RLP

function getBytes32() public pure returns (bytes32) { bytes32 a = "\x61\x62\x63"; return (a); }

Definition at line 80 of file MultiReturnerTest.php.

◆ testGetBytes8()

testGetBytes8 ( )

Definition at line 59 of file MultiReturnerTest.php.

◆ testGetBytesLong()

testGetBytesLong ( )

function getBytesLong() public pure returns (bytes) returns 60 bytes.

Definition at line 106 of file MultiReturnerTest.php.

◆ testGetDynamicData()

testGetDynamicData ( )

function getDynamicData() public pure returns (bytes, bytes) { bytes memory a = "\x61\x62\x63"; bytes memory b = "\x78\x79\x7a"; return (a, b); }

Definition at line 155 of file MultiReturnerTest.php.

◆ testGetDynamicDataMixedOne()

testGetDynamicDataMixedOne ( )

function getDynamicDataMixedOne() public pure returns (bytes, bytes32) { bytes memory a = "\x61\x62\x63"; bytes32 b = "\x78\x79\x7a"; return (a, b); }

Definition at line 185 of file MultiReturnerTest.php.

◆ testGetDynamicDataMixedTwo()

testGetDynamicDataMixedTwo ( )

function getDynamicDataMixedTwo() public pure returns (bytes32, bytes) { bytes32 a = "\x78\x79\x7a"; bytes memory b = "\x61\x62\x63"; return (a, b); }

Definition at line 139 of file MultiReturnerTest.php.

◆ testGetDynamicTripple()

testGetDynamicTripple ( )

function getDynamicTripple() public pure returns (bytes, bytes, bytes) { bytes memory a = "\x61\x62\x63"; bytes memory b = "\x64\x65\x66"; bytes memory c = "\x67\x68\x69"; return (a, b, c); }

Definition at line 170 of file MultiReturnerTest.php.

◆ testGetInteger()

testGetInteger ( )

NON RLP

function getInteger() public pure returns (int) { int a = 99; return (a); }

Definition at line 37 of file MultiReturnerTest.php.

◆ testGetLotsOfBytes()

testGetLotsOfBytes ( )

function getLotsOfBytes() public pure returns (bytes) { bytes memory a = "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xf1"; return a; // > 159 bytes }

Definition at line 217 of file MultiReturnerTest.php.

◆ testGetTwoBytes32()

testGetTwoBytes32 ( )

TWO bytes32 values returned

function getTwoBytes32() public pure returns (bytes32, bytes32) { bytes32 a = "\x61\x62\x63"; bytes32 b = "\x78\x79\x7a"; return (a, b); }

Definition at line 122 of file MultiReturnerTest.php.

◆ testUndefinedMethod()

testUndefinedMethod ( )

Test undefined Method

Exceptions

Definition at line 198 of file MultiReturnerTest.php.


The documentation for this class was generated from the following file: