chore: refactors exceptions

This commit is contained in:
nuno maduro
2026-08-07 15:26:55 +01:00
parent 42d9b777bf
commit 8c554a81e2
54 changed files with 145 additions and 94 deletions
+2 -2
View File
@@ -170,7 +170,7 @@ final class TestCaseFactory
eval($classCode);
} catch (ParseError $caught) {
throw new RuntimeException(sprintf(
"Unable to create test case for test file at %s. \n %s",
"Unable to create test case for test file at [%s]. \n %s",
$filename,
$classCode
), 1, $caught);
@@ -237,6 +237,6 @@ final class TestCaseFactory
}
}
throw ShouldNotHappen::fromMessage(sprintf('Method %s not found.', $methodName));
throw ShouldNotHappen::fromMessage(sprintf('Method [%s] not found.', $methodName));
}
}