From 5bf271ef71b9e87f159e50de2c2a0016008ed2ef Mon Sep 17 00:00:00 2001 From: 1099511627776 <1099511627776@mail.ru> Date: Mon, 22 Jul 2019 17:37:59 +0300 Subject: [PATCH] fix failing tests --- tests/TronTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TronTest.php b/tests/TronTest.php index b34c34c..888002f 100644 --- a/tests/TronTest.php +++ b/tests/TronTest.php @@ -16,7 +16,7 @@ class TronTest extends TestCase public function test_isValidProvider() { - $tron = new Tron(self::FULL_NODE_API, self::SOLIDITY_NODE_API); + $tron = new Tron(new HttpProvider(self::FULL_NODE_API), new HttpProvider(self::SOLIDITY_NODE_API)); $provider = new HttpProvider(self::FULL_NODE_API); $this->assertEquals($tron->isValidProvider($provider), true); @@ -24,7 +24,7 @@ public function test_isValidProvider() public function test_setAddress() { - $tron = new Tron(self::FULL_NODE_API, self::SOLIDITY_NODE_API); + $tron = new Tron(new HttpProvider(self::FULL_NODE_API), new HttpProvider(self::SOLIDITY_NODE_API)); $tron->setAddress(self::ADDRESS_HEX); $this->assertEquals($tron->getAddress()['hex'],self::ADDRESS_HEX); @@ -33,7 +33,7 @@ public function test_setAddress() public function test_setDefaultBlock() { - $tron = new Tron(self::FULL_NODE_API,self::SOLIDITY_NODE_API); + $tron = new Tron(new HttpProvider(self::FULL_NODE_API),new HttpProvider(self::SOLIDITY_NODE_API)); $tron->setDefaultBlock(1); $this->assertEquals($tron->getDefaultBlock(), 1);