web3.php/test/unit/RequestManagerTest.php
2017-12-19 11:52:31 +08:00

25 lines
528 B
PHP

<?php
namespace Test\Unit;
use Test\TestCase;
use Web3\RequestManagers\RequestManager;
class RequestManagerTest extends TestCase
{
/**
* testSetHost
*
* @return void
*/
public function testSetHost()
{
$requestManager = new RequestManager('http://localhost:8545');
$this->assertEquals($requestManager->host, 'http://localhost:8545');
$requestManager->host = $this->testRinkebyHost;
$this->assertEquals($requestManager->host, 'http://localhost:8545');
}
}