Skip to content

Commit

Permalink
Increased code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbyoung committed Apr 17, 2020
1 parent 681723d commit 81e5be3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Mocks/class-constant.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2020 David Young
* @license https://github.com/aphiria/aphiria/blob/master/LICENSE.md
*/

declare(strict_types=1);

\Closure::class;
7 changes: 7 additions & 0 deletions tests/TypeFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ public function testFindAllTypesAreFoundInSubdirectories(): void
);
}

public function testFindAllTypesWithInvalidDirectoryParameterThrowsException(): void
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Directories must be a string or array of strings');
$this->finder->findAllTypes($this);
}

public function testFindAllTypesWithNonDirectoryPathThrowsException(): void
{
$this->expectException(InvalidArgumentException::class);
Expand Down

0 comments on commit 81e5be3

Please sign in to comment.