当我在 Symfony2 项目中运行 Behat 测试时,我得到很多不需要的调试行,如下所示:
[2013-02-01 17:07:50] request.INFO: Matched route "homepage" (parameters: "_controller": "Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction", "route": "Acme_tasks_tasks", "permanent": "true", "_route": "homepage") [] []
[2013-02-01 17:07:51] security.DEBUG: Read SecurityContext from the session [] []
[2013-02-01 17:07:51] security.DEBUG: Reloading user from user provider. [] []
[2013-02-01 17:07:51] security.DEBUG: Username "john" was reloaded from user provider. [] []
[2013-02-01 17:07:51] security.DEBUG: Write SecurityContext in the session [] []
我的behat.yml
样子是这样的:
default:
formatter:
name: progress
extensions:
Behat\Symfony2Extension\Extension:
mink_driver: true
kernel:
env: test
debug: false
Behat\MinkExtension\Extension:
base_url: 'http://local.acme.ch/app_test.php/'
default_session: symfony2
javascript_session: selenium
selenium:
host: 33.33.33.1
port: 4444
如您所见,我已经关闭了内核的调试模式,这些东西是从哪里来的?
我的安装基于 Behat 的 Symfony2 Extension。