저는 Codeception의 Db 모듈을 설정 중이며 Symfony 2의 parameters.yml 파일에서 매개 변수를 사용하고 싶습니다. 이 같은codeception.yml에서 매개 변수 자리 표시 자 사용
기본적으로 뭔가 :
paths:
tests: tests
log: tests/_log
data: tests/_data
helpers: tests/_helpers
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
memory_limit: 1024M
log: true
modules:
config:
Symfony2:
app_path: 'app'
var_path: 'app'
environment: 'test'
Db:
dsn: "mysql:host='%test_database_host%';dbname='%test_database_name%'"
user: "%test_database_user%"
password: "%test_database_password%"
dump: tests/_data/test_data.sql
자리 표시 (예를 들어 % test_database_user %) 심포니 2의 응용 프로그램/config 디렉토리에있는 parameters.yml 파일의 값으로 대체되지 않습니다.
parameters.yml :
parameters:
test_database_name: testdb
test_database_host: 127.0.0.1
test_database_user: root
test_database_password: thisismypassword
이 작업을 수행하는 가장 좋은 방법은 무엇입니까?
감사합니다. 당신은 추가해야 PARAMS 사용하기 위해서는