Skip to content

Commit daab391

Browse files
committed
add missing @throws tags in PHPDoc #11
1 parent 5e39f65 commit daab391

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

tests/Api/ApiElementTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ public function testDateTimeElements()
214214

215215
/**
216216
* Test JSON serializing an element class.
217+
* @throws ExpectationFailedException
218+
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
217219
*/
218220
public function testJsonSerialize()
219221
{

tests/Api/TableTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public function testTableCast()
141141

142142
/**
143143
* Test casting raw data with an element missing.
144+
* @throws InvalidArgumentException
144145
*/
145146
public function testTableCastMissingElement()
146147
{

tests/Config/AbstractConfigurationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ public function testUnknownConfigurationKeyForSet()
8989

9090
/**
9191
* Test get()ting an unset configuration key.
92+
* @throws ExpectationFailedException
93+
* @throws InvalidArgumentException
94+
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
9295
*/
9396
public function testGettingUnsetConfigurationKey()
9497
{

tests/Config/ConfigTypeATest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace tests\phpsap\classes\Config;
44

5+
use phpsap\exceptions\IncompleteConfigException;
56
use phpsap\exceptions\InvalidArgumentException;
7+
use phpsap\interfaces\exceptions\IInvalidArgumentException;
68
use PHPUnit\Framework\Exception;
79
use PHPUnit\Framework\ExpectationFailedException;
810
use PHPUnit\Framework\TestCase;
@@ -43,6 +45,11 @@ public function testInheritance()
4345

4446
/**
4547
* Test set*() and get*() methods.
48+
* @throws ExpectationFailedException
49+
* @throws InvalidArgumentException
50+
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
51+
* @throws IncompleteConfigException
52+
* @throws IInvalidArgumentException
4653
*/
4754
public function testSetAndGet()
4855
{

tests/Config/ConfigTypeBTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
namespace tests\phpsap\classes\Config;
44

55
use phpsap\classes\Util\JsonSerializable;
6+
use phpsap\exceptions\IncompleteConfigException;
67
use phpsap\exceptions\InvalidArgumentException;
78
use phpsap\interfaces\Config\IConfigTypeB;
89
use phpsap\interfaces\Config\IConfiguration;
910
use phpsap\classes\Config\AbstractConfiguration;
1011
use phpsap\classes\Config\ConfigCommon;
1112
use phpsap\classes\Config\ConfigTypeB;
13+
use phpsap\interfaces\exceptions\IInvalidArgumentException;
1214
use PHPUnit\Framework\Exception;
1315
use PHPUnit\Framework\ExpectationFailedException;
1416
use PHPUnit\Framework\TestCase;
@@ -43,6 +45,11 @@ public function testInheritance()
4345

4446
/**
4547
* Test set*() and get*() methods.
48+
* @throws ExpectationFailedException
49+
* @throws InvalidArgumentException
50+
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
51+
* @throws IncompleteConfigException
52+
* @throws IInvalidArgumentException
4653
*/
4754
public function testSetAndGet()
4855
{

0 commit comments

Comments
 (0)