web3; $this->assertTrue($web3->provider instanceof HttpProvider); $this->assertTrue($web3->provider->requestManager instanceof RequestManager); $this->assertTrue($web3->eth instanceof Eth); $this->assertTrue($web3->net instanceof Net); } /** * testUnallowedMethod * * @return void */ public function testUnallowedMethod() { $this->expectException(RuntimeException::class); $web3 = $this->web3; $web3->hello(function ($err, $hello) { if ($err !== null) { return $this->fail($err->getMessage()); } if (isset($hello->result)) { $this->assertTrue(true); } else { $this->fail($hello->error->message); } }); } }