diff --git a/composer.json b/composer.json index 449b4ad..88e94cd 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "php-http/message": "^1.0", "php-http/client-common": "^1.0", "php-http/discovery": "^1.0", - "webmozart/assert": "^1.1" + "webmozart/assert": "^1.2" }, "require-dev": { "phpunit/phpunit": "~4.8", diff --git a/src/Mailgun/Assert.php b/src/Mailgun/Assert.php index cb98d3e..99033ab 100644 --- a/src/Mailgun/Assert.php +++ b/src/Mailgun/Assert.php @@ -1,5 +1,12 @@ total('domain', $data); } - // /** - // * @expectedException \Mailgun\Exception\InvalidArgumentException - // */ - // public function testTotalInvalidArgument() - // { - // $api = $this->getApiMock(); - // - // $api->total(''); - // } + /** + * @expectedException \Mailgun\Exception\InvalidArgumentException + */ + public function testTotalInvalidArgument() + { + $api = $this->getApiMock(); + $api->total(''); + } public function testAll() { @@ -54,13 +53,13 @@ class StatsTest extends TestCase $api->all('domain', $data); } - // /** - // * @expectedException \Mailgun\Exception\InvalidArgumentException - // */ - // public function testAllInvalidArgument() - // { - // $api = $this->getApiMock(); - // - // $api->all(''); - // } + /** + * @expectedException \Mailgun\Exception\InvalidArgumentException + */ + public function testAllInvalidArgument() + { + $api = $this->getApiMock(); + + $api->all(''); + } }