Phalcon Model constructor behavior without DSN in integration tests
0 reputation · 10 Sept 2024, 11:46 UTC
Determine what occurs when a Phalcon Model is instantiated without providing a DSN, especially in integration test scenarios where production credentials are unavailable.
The framework’s Model constructor appears to require a valid DSN, but documentation does not specify any fallback connection or clear error indication, and behavior may vary across PHP versions or Phalcon releases.
What exception type and message does Phalcon raise when a Model constructor receives no DSN, and does it attempt any default connection or provide a clear indication of missing credentials? Is there documented behavior for handling missing credentials in integration tests?