As we integrate local customizations to our fork of the moodle/moodle/master branch, we're trying to test with the included version of behat. We have a shared development server so when I went to run the tests I got an error like this:
Warning: file_put_contents(/tmp/behat_gherkin_cache/412/d211f7e894af945272bcde0dc32523c0.feature.cache): failed to open stream: Permission denied in /home/tjn/prj/moodle/git/docs/vendor/behat/gherkin/src/Behat/Gherkin/Cache/FileCache.php line 88
I found that /tmp/behat_gherkin_cache was created automatically, owned by another developer and not writable by me.
This seems configured by this snippit of code:
? sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'behat_gherkin_cache'
: nullin vendor/behat/behat/src/Behat/Behat/Gherkin/ServiceContainer/GherkinExtension.php
I don't see another way to configure this directory to avoid collisions with multiple developers on the same host. -- Am I missing something? Thanks, --Travis