Skip to content

Commit

Permalink
test(coverage): Fix missing coverage [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Dec 23, 2022
1 parent 3911b5d commit a476593
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Unit/BouncerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,20 @@ public function testConfigure()
'user_agent_version should be configurable'
);

$error = '';
try {
new Bouncer(['api_key' => TestConstants::API_KEY, 'user_agent_version' => '']);
} catch (\Exception $e) {
$error = $e->getMessage();
}

PHPUnitUtil::assertRegExp(
$this,
'/Invalid user agent version/',
$error,
'user_agent_version can not be empty'
);


// auth type
$error = '';
Expand Down

0 comments on commit a476593

Please sign in to comment.