Skip to content

Commit

Permalink
add missing @throws tags to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Mar 21, 2022
1 parent 61dde92 commit 779b31f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/DictionaryFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function testInvalidFile(): void
* @return void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \Exception
*/
public function testGetRandomWord(): void
{
Expand Down
3 changes: 3 additions & 0 deletions tests/ManageRandomItemsTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ManageRandomItemsTraitTest extends TestCase
* @return void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \Exception
*/
public function testHas(): void
{
Expand All @@ -30,6 +31,7 @@ public function testHas(): void
* @return void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \Exception
*/
public function testReset(): void
{
Expand All @@ -45,6 +47,7 @@ public function testReset(): void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws Exception
* @throws \Exception
*/
public function testRemove(): void
{
Expand Down
3 changes: 3 additions & 0 deletions tests/RandomCharacterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Tests\GregorJ\CorrectHorse;

use Exception;
use GregorJ\CorrectHorse\Generators\RandomCharacter;
use PHPUnit\Framework\TestCase;

Expand Down Expand Up @@ -60,6 +61,7 @@ public function testEmptyString(): void

/**
* @return void
* @throws Exception
*/
public function testGenerate(): void
{
Expand All @@ -73,6 +75,7 @@ public function testGenerate(): void

/**
* @return void
* @throws Exception
*/
public function testGenerateFromSingleCharacter(): void
{
Expand Down
5 changes: 5 additions & 0 deletions tests/RandomNumbersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function testInheritance(): void
* @throws Exception
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \Exception
*/
public function testSetMinAndMax(): void
{
Expand All @@ -49,6 +50,7 @@ public function testSetMinAndMax(): void
* @throws Exception
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \Exception
*/
public function testSetFlippedMinAndMax(): void
{
Expand All @@ -67,6 +69,7 @@ public function testSetFlippedMinAndMax(): void
* @throws Exception
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \Exception
*/
public function testSetMinSameAsMax(): void
{
Expand All @@ -85,6 +88,7 @@ public function testSetMinSameAsMax(): void
* @throws Exception
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \Exception
*/
public function testSetMinBelowZero(): void
{
Expand All @@ -103,6 +107,7 @@ public function testSetMinBelowZero(): void
* @throws Exception
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws \Exception
*/
public function testReachingMax(): void
{
Expand Down
8 changes: 8 additions & 0 deletions tests/RandomWordsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class RandomWordsTest extends TestCase
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws RuntimeException
* @throws \Exception
*/
public function testEmptyWords(): void
{
Expand All @@ -37,6 +38,7 @@ public function testEmptyWords(): void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws RuntimeException
* @throws \Exception
*/
public function testReset(): void
{
Expand Down Expand Up @@ -64,6 +66,7 @@ public function testReset(): void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws RuntimeException
* @throws \Exception
*/
public function testRemoveLowerCase(): void
{
Expand Down Expand Up @@ -91,6 +94,7 @@ public function testRemoveLowerCase(): void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws RuntimeException
* @throws \Exception
*/
public function testRemoveUpperCase(): void
{
Expand Down Expand Up @@ -118,6 +122,7 @@ public function testRemoveUpperCase(): void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws RuntimeException
* @throws \Exception
*/
public function testRemove(): void
{
Expand Down Expand Up @@ -155,6 +160,7 @@ public function testRemove(): void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws RuntimeException
* @throws \Exception
*/
public function testGetWithoutLowerCase(): void
{
Expand Down Expand Up @@ -183,6 +189,7 @@ public function testGetWithoutLowerCase(): void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws RuntimeException
* @throws \Exception
*/
public function testGetWithoutUpperCase(): void
{
Expand Down Expand Up @@ -211,6 +218,7 @@ public function testGetWithoutUpperCase(): void
* @throws ExpectationFailedException
* @throws InvalidArgumentException
* @throws RuntimeException
* @throws \Exception
*/
public function testAdd(): void
{
Expand Down

0 comments on commit 779b31f

Please sign in to comment.