From 77cb89cbf7ee04210930b2f4322765466cbf12e2 Mon Sep 17 00:00:00 2001 From: Jitendra Adhikari Date: Tue, 21 Aug 2018 18:32:59 +0700 Subject: [PATCH] fix(testcmd): skip exceptions [closes #37] --- src/Console/TestCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Console/TestCommand.php b/src/Console/TestCommand.php index f037d44..238eb4b 100644 --- a/src/Console/TestCommand.php +++ b/src/Console/TestCommand.php @@ -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; }