From 585eeacbba544cfe2d0adf1907f4dc8056ad1e50 Mon Sep 17 00:00:00 2001 From: Meyfarth Date: Mon, 2 Feb 2015 16:23:21 +0100 Subject: [PATCH] Added a note concerning the tearDown method Added a hint to properly close the connection depending on the PHP version. --- cookbook/testing/doctrine.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbook/testing/doctrine.rst b/cookbook/testing/doctrine.rst index b4f1cda682a..75b986cdfd8 100644 --- a/cookbook/testing/doctrine.rst +++ b/cookbook/testing/doctrine.rst @@ -64,3 +64,7 @@ which makes all of this quite easy:: $this->em->close(); } } + +.. note:: + + Depending on your PHP version, you might need to call ``gc_collect_cycles()`` after closing the connection.