eth = $this->web3->eth; } /** * testInstance * * @return void */ public function testInstance() { $eth = $this->eth; $this->assertTrue($eth->provider instanceof HttpProvider); $this->assertTrue($eth->provider->requestManager instanceof RequestManager); } /** * testSetProvider * * @return void */ public function testSetProvider() { $eth = $this->eth; $requestManager = new HttpRequestManager('http://localhost:8545'); $eth->provider = new HttpProvider($requestManager); $this->assertEquals($eth->provider->requestManager->host, 'http://localhost:8545'); } }