• 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
..
DBAL Loading commit data...
Mocks Loading commit data...
Types Loading commit data...
DbalFunctionalTestCase.php Loading commit data...
DbalTestCase.php Loading commit data...
DoctrineTestCase.php Loading commit data...
TestInit.php Loading commit data...
TestUtil.php Loading commit data...