Use unset() to automatically call __destruct() when testing for a memory leak

This commit is contained in:
Zach Borboa
2018-05-23 00:57:10 -07:00
parent d13c43160d
commit 60917c1e8e
+1 -1
View File
@@ -3026,7 +3026,7 @@ class CurlTest extends \PHPUnit\Framework\TestCase
}
echo '{"before":' . memory_get_usage() . ',';
$curl = new Curl();
$curl->close();
unset($curl);
echo '"after":' . memory_get_usage() . '}';
sleep(1);
}