symfonyの機能テストを個別に実行するとsfParseExceptionが発生する

symfonyでは以下のようにして、アプリケーション全体の機能テストを実行することができます。

$ symfony test-functional frontend

同様に、機能テストを個別に実行したい場合は、

$ symfony test-functional frontend fooActions

のようにします。

ところが、先日リリースされたばかりのPHP 5.2.6では豪快にsfParseExceptionが発生してしまい残念な感じです。

$ symfony test-functional frontend fooActions
[exception]   sfParseException
[message]     Configuration file "/opt/local/lib/php/data/symfony/config/php.yml" specifies key "magic_quotes_runtime" which cannot be overrided

個別にテストが実行できないと非常に効率が悪いのでどうしたものかと調べてみると、1.0ブランチではChangeset 8861 - symfony - Tracで既に修正されていることが判明。手元のsfPhpConfigHandler.class.phpを直接修正して無事に動作するようになりました。

使用可能なタグ <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>