From f8e11edea8684eec21860a9f42604fbff8771aa2 Mon Sep 17 00:00:00 2001 From: denpamusic Date: Fri, 14 Sep 2018 15:22:47 +0300 Subject: [PATCH] Updated README. --- README.md | 10 +++++----- tests/FunctionsTest.php | 10 ++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 48e99e2..ecea9ca 100644 --- a/README.md +++ b/README.md @@ -90,10 +90,10 @@ To send asynchronous request, add Async to method name: $bitcoind->getBlockAsync( '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f', function ($response) { - // + // success }, function ($exception) { - // + // error } ); ``` @@ -131,10 +131,10 @@ $bitcoind->requestAsync( 'getBlock', '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f', function ($response) { - // + // success }, - function ($error) { - // + function ($exception) { + // error } ); ``` diff --git a/tests/FunctionsTest.php b/tests/FunctionsTest.php index 8c1dfae..1396ce1 100644 --- a/tests/FunctionsTest.php +++ b/tests/FunctionsTest.php @@ -7,6 +7,9 @@ class FunctionsTest extends TestCase /** * Test satoshi to btc converter. * + * @param int $satoshi + * @param string $bitcoin + * * @return void * * @dataProvider valueProvider @@ -19,6 +22,9 @@ public function testToBtc($satoshi, $bitcoin) /** * Test btc to satoshi converter. * + * @param int $satoshi + * @param string $bitcoin + * * @return void * * @dataProvider valueProvider @@ -31,6 +37,10 @@ public function testToSatoshi($satoshi, $bitcoin) /** * Test float to fixed converter. * + * @param float $float + * @param int $precision + * @param string $expected + * * @return void * * @dataProvider floatProvider