1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace Test;
- use \PHPUnit\Framework\TestCase as BaseTestCase;
- use Web3\Web3;
- class TestCase extends BaseTestCase
- {
-
- protected $web3;
-
- protected $testRinkebyHost = 'https://rinkeby.infura.io/vuethexplore';
-
- protected $testHost = 'http://localhost:8545';
-
- protected $coinbase;
-
- public function setUp()
- {
- $web3 = new Web3($this->testHost);
- $this->web3 = $web3;
- $web3->eth->coinbase(function ($err, $coinbase) {
- if ($err !== null) {
- return $this->fail($err->getMessage());
- }
- $this->coinbase = $coinbase;
- });
- }
-
- public function tearDown() {}
- }
|