Steps to reproduce
See https://github.com/JeroenDeDauw/Maps/pull/131/files
And test fails at https://travis-ci.org/JeroenDeDauw/Maps/builds/121273121 without using the workaround by including autoload.php at the top
Test passing with the workaround https://travis-ci.org/JeroenDeDauw/Maps/builds/121274793
Actual results
Note I made changes so you wont see my change I made but if you remove from the top of the php main file
if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) { include_once( __DIR__ . '/vendor/autoload.php' ); }
you will be able to reproduce it.
Expected results
- The test should not fail with could not find this class which is added in composer. Which we use config "load_composer_autoloader" to load autoload.php but it doesn't seem to find the one in the extension because it fails wheras using
if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) { include_once( __DIR__ . '/vendor/autoload.php' ); }
works in php.
Please could this be fixed so it searches both mw core and extensions or just mw core and extension in the integration tests and extensions only when using them locally or on website please.