From 180e2d3cdbd39dd90bf9a6796eb807c2467821f8 Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Wed, 7 Feb 2018 16:47:11 +0800 Subject: [PATCH] BooleanFormatterTest. --- test/unit/BooleanFormatterTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/BooleanFormatterTest.php b/test/unit/BooleanFormatterTest.php index 3736123..b0da5b4 100644 --- a/test/unit/BooleanFormatterTest.php +++ b/test/unit/BooleanFormatterTest.php @@ -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'); } } \ No newline at end of file