composer now shows deprecation notice when a file does not comply with psr-4 autoloading standard.
The message is:
Deprecation Notice: Class JDesrosiers\Silex\Provider\Test\CorsEnableControllerTest located in ./vendor/jdesrosiers/silex-cors-provider/src/Test/CorsEnableControlerTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Instead of just fixing the namespace, I have moved the src/Test/ directory to tests/ so tests are not loaded when importing from composer.
PHPUnit was also failing:
Error: Class 'File_Iterator_Facade' not found in vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php on line 813
due to an old PHPUnit version.
This PR:
[x] Moves tests to their own directory
[x] Updates PHPUnit to version 5 because is the last version that supports PHP 5.6
Hi @jdesrosiers,
composer now shows deprecation notice when a file does not comply with psr-4 autoloading standard.
The message is:
Deprecation Notice: Class JDesrosiers\Silex\Provider\Test\CorsEnableControllerTest located in ./vendor/jdesrosiers/silex-cors-provider/src/Test/CorsEnableControlerTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Instead of just fixing the namespace, I have moved the
src/Test/
directory totests/
so tests are not loaded when importing from composer.PHPUnit was also failing:
Error: Class 'File_Iterator_Facade' not found in vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php on line 813
due to an old PHPUnit version.
This PR: