• Ryan Weaver's avatar
    Updating test to verify that the wrapped connection is set to null on close (not unset) · 9d8be7b1
    Ryan Weaver authored
    This mocks connect(), sets the internal _conn to an object, then calls close, which
    should re-set _conn back to null. The getWrappedConnection() call gives us access
    to _conn, but does NOT trigger a re-connect, since we mocked connect() to do nothing.
    Ultimately, if _conn is unset, calling getWrappedConnection() will error. If _conn
    is not set to null, the test will fail. This tests all the cases.
    9d8be7b1
Name
Last commit
Last update
..
Driver Loading commit data...
Events Loading commit data...
Exception Loading commit data...
Functional Loading commit data...
Logging Loading commit data...
Mocks Loading commit data...
Platforms Loading commit data...
Portability Loading commit data...
Query Loading commit data...
Schema Loading commit data...
Sharding Loading commit data...
Types Loading commit data...
ConfigurationTest.php Loading commit data...
ConnectionTest.php Loading commit data...
DBALExceptionTest.php Loading commit data...
DriverManagerTest.php Loading commit data...
SQLParserUtilsTest.php Loading commit data...
StatementTest.php Loading commit data...
UtilTest.php Loading commit data...