net = $this->web3->net; } /** * testBatch * * @return void */ public function testBatch() { $net = $this->net; $net->batch(true); $net->version(); $net->listening(); $net->peerCount(); $net->provider->execute(function ($err, $data) { if ($err !== null) { return $this->fail('Got error!'); } $this->assertTrue(is_string($data[0])); $this->assertTrue(is_bool($data[1])); $this->assertTrue($data[2] instanceof BigNumber); }); } }