ProviderTest
This commit is contained in:
parent
cdce5becf6
commit
4c32a35f11
@ -3,11 +3,26 @@
|
|||||||
namespace Test\Unit;
|
namespace Test\Unit;
|
||||||
|
|
||||||
use Test\TestCase;
|
use Test\TestCase;
|
||||||
|
use Web3\RequestManagers\RequestManager;
|
||||||
|
use Web3\Providers\Provider;
|
||||||
|
|
||||||
class ProviderTest extends TestCase
|
class ProviderTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testHelloWorld()
|
/**
|
||||||
|
* testSetRequestManager
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function testSetRequestManager()
|
||||||
{
|
{
|
||||||
$this->assertTrue(true);
|
$requestManager = new RequestManager('http://localhost:8545');
|
||||||
|
$provider = new Provider($requestManager);
|
||||||
|
|
||||||
|
$this->assertEquals($provider->requestManager->host, 'http://localhost:8545');
|
||||||
|
|
||||||
|
$requestManager = new RequestManager($this->testRinkebyHost);
|
||||||
|
$provider->requestManager = $requestManager;
|
||||||
|
|
||||||
|
$this->assertEquals($provider->requestManager->host, 'http://localhost:8545');
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user