diff --git a/test/TestCase.php b/test/TestCase.php index 595046b..ed6e437 100644 --- a/test/TestCase.php +++ b/test/TestCase.php @@ -14,6 +14,13 @@ class TestCase extends BaseTestCase */ protected $web3; + /** + * testRinkebyHost + * + * @var string + */ + protected $testRinkebyHost = 'https://rinkeby.infura.io/vuethexplore'; + /** * setUp * @@ -21,7 +28,7 @@ class TestCase extends BaseTestCase */ public function setUp() { - $web3 = new Web3('https://rinkeby.infura.io/vuethexplore'); + $web3 = new Web3($this->testRinkebyHost); $this->web3 = $web3; } diff --git a/test/unit/RequestManagerTest.php b/test/unit/RequestManagerTest.php new file mode 100644 index 0000000..9decf05 --- /dev/null +++ b/test/unit/RequestManagerTest.php @@ -0,0 +1,25 @@ +assertEquals($requestManager->host, 'http://localhost:8545'); + + $requestManager->host = $this->testRinkebyHost; + + $this->assertEquals($requestManager->host, 'http://localhost:8545'); + } +} \ No newline at end of file