BooleanFormatterTest.

This commit is contained in:
sc0Vu 2018-02-07 16:47:11 +08:00
parent 5989f167b3
commit 180e2d3cdb

View File

@ -2,6 +2,7 @@
namespace Test\Unit;
use InvalidArgumentException;
use Test\TestCase;
use Web3\Formatters\BooleanFormatter;
@ -39,5 +40,8 @@ class BooleanFormatterTest extends TestCase
$boolean = $formatter->format(false);
$this->assertEquals($boolean, 0);
$this->expectException(InvalidArgumentException::class);
$boolean = $formatter->format('boolean');
}
}