Closed guilliamxavier closed 1 year ago
I have merged this wonderful PR into my continuation of this project: https://github.com/PHPExpertsInc/SymfonyExtension/
composer require --dev phpexperts/symfony-extension
It's 100% backward compatible with behat/symfony2-extension.
Bug fix: yes.
After #141, the new default value for kernel
bootstrap
andpath
options isnull
, but, unlike forbootstrap
, the processing ofpath
doesn't check for emptiness, thus the testfile_exists($kernel = $basePath . '/' . $kernelPath)
where$kernelPath
is null (or empty string) does likefile_exists($kernel = $basePath . '/')
which is true although$kernel
then denotes a directory (not a file) which later causes an error.So I simply added a check similar to
$bootstrapPath
a few lines above.