• 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
bin Loading commit data...
docs Loading commit data...
lib Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
UPGRADE.md Loading commit data...
build.properties Loading commit data...
build.xml Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...
run-all.sh Loading commit data...