Eth api getCompilers unit test.

This commit is contained in:
sc0Vu 2018-01-12 16:01:55 +08:00
parent 5a9bd4f8c0
commit ea150f7958

View File

@ -421,7 +421,7 @@ class EthApiTest extends TestCase
if ($err !== null) {
return $this->assertTrue($err !== null);
}
$this->assertTrue(is_string($block));
$this->assertTrue($block !== null);
});
}
@ -558,7 +558,8 @@ class EthApiTest extends TestCase
if ($err !== null) {
return $this->assertTrue($err !== null);
}
$this->assertTrue(is_string($compilers));
$this->assertTrue(is_array($compilers));
$this->assertEquals($compilers[0], 'solidity');
});
}