alphazframework / framework

Core files of AlphaZ Framework
https://alphazframework.github.io/
MIT License
16 stars 17 forks source link

Fix deprecated PSR-4 autoloading #317

Closed peter279k closed 3 years ago

peter279k commented 3 years ago
Deprecation Notice: Class Framework\Tests\EncryptionTest located in ./Tests/Encryption/EncryptionTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\KeyTest located in ./Tests/Site/KeyTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\MailTest located in ./Tests/Mail/MailTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\ConfigurationTest located in ./Tests/Common/ConfigurationTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\RootTest located in ./Tests/Common/RootTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\PasswordManipulationTest located in ./Tests/Common/PasswordManipulationTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\ContainerTest located in ./Tests/Container/ContainerTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\ArraysTest located in ./Tests/Data/ArraysTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\ConversionTest located in ./Tests/Data/ConversionTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\StrTest located in ./Tests/Data/StrTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Framework\Tests\TimeTest located in ./Tests/Time/TimeTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/lee/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201

These above reasons are about namespace is not correct to be compatible with PSR-4 autoloading.

To fix above deprecated message, it should fix the namespaces.