Static Public Member Functions | |
static | setUpBeforeClass () |
Abstract base class for Tests
Exclude by running only the static tests vendor/bin/phpunit --testsuite EthereumPhp
Easiest way to get started is using
npm install -g truffle && cd test_contracts && truffle build && truffle migrate
Default is the Ganache default config. <env name="SERVER_URL" value=""/> <env name="NETWORK_ID" value="5777"/>
You may define this vars in your shell before running tests. NETWORK_ID='1' SERVER_URL='http://localhost:8545' export NETWORK_ID export SERVER_URL
NETWORK_ID is used to get the Contract Address from Truffle deployed contracts. See build/contracts *.json
"networks": { NETWORK_ID: { "events": {}, "links": {}, "address": "0x345ca3e014aaf5dca488057592ee47305d9b3e10" },
Definition at line 64 of file TestEthClient.php.
|
static |
Ethereum Test Base class
Exception | If NETWORK_ID or SERVER_URL are not defined env vars in phpunit.xml. |
Definition at line 72 of file TestEthClient.php.