Tests: fix two missing import use statements - #250
Conversation
Add two import `use` statements for the PHP native `RuntimeException` class, which is used to signal certain failures in the test set up. The fact that this wasn't noticed before clearly means the tests never failed at those Exceptions before ;-)
|
I have no issues with approving these changes, but as I recall, the imports not being there shouldn't cause an issue. Not finding (or am I mixing up languages again? 😕 ) |
Yes, you're mixing up languages. In PHP, in namespaced files, there is no fallback to the global namespace (or traversing) for classes. Only functions and constants fall back to the global namespace. So, no, this missing |
Proposed Changes
Add two import
usestatements for the PHP nativeRuntimeExceptionclass, which is used to signal certain failures in the test set up.The fact that this wasn't noticed before clearly means the tests never failed at those Exceptions before ;-)
Suggested changelog entry
N/A (general housekeeping)