diff --git a/src/Exceptions/TestDescriptionMissing.php b/src/Exceptions/TestDescriptionMissing.php new file mode 100644 index 00000000..67f75930 --- /dev/null +++ b/src/Exceptions/TestDescriptionMissing.php @@ -0,0 +1,24 @@ +description === null) { - throw ShouldNotHappen::fromMessage('The test description may not be empty.'); + throw new TestDescriptionMissing($method->filename); } if (array_key_exists($method->description, $this->methods)) {