Skip to content

Commit

Permalink
fix(testcmd): skip exceptions [closes #37]
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Aug 21, 2018
1 parent eb4d5b1 commit 77cb89c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Console/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ protected function getClassMetadata(string $classFqcn): array

protected function shouldGenerateTest(\ReflectionClass $reflex): bool
{
if ($reflex->isSubclassOf(\Throwable::class)) {
return false;
}

if ($this->abstract) {
return true;
}
Expand Down

0 comments on commit 77cb89c

Please sign in to comment.