大佬教程收集整理的这篇文章主要介绍了当phpunit与symfony 2.X一起运行时,PDO连接未关闭,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_301_1@在tearDown函数中我们调用实体管理器的close函数,但没有任何东西,它没有任何影响.我认为有一些类保持连接对象引用.
@H_301_1@因为在PHP手册中提到了关于pdo连接关闭时对象分配为null.我们也这样做,但没有变化.
imports: - { resource: config_dev.yml } framework: test: ~ session: storage_id: session.storage.mock_file web_profiler: toolbar: false intercept_redirects: false doctrine: dbal: driver: pdo_@L_450_15@ port: 3306 host: localhost dbname: mydb user: myuser password: mypass charset: UTF8
@H_301_1@请确保您的参数在下面相同
<PHPunit BACkupGlobals = "false" BACkupStaticAttributes = "false" colors = "true" convertErrorsToExceptions = "true" convertNoticesToExceptions = "true" convertWarningsToExceptions = "true" processisolation = "true" stopOnFailure = "false" Syntaxcheck = "false" bootstrap = "bootstrap.PHP.cache" >
以上是大佬教程为你收集整理的当phpunit与symfony 2.X一起运行时,PDO连接未关闭全部内容,希望文章能够帮你解决当phpunit与symfony 2.X一起运行时,PDO连接未关闭所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。