에서 작곡가 자동로드가 작동하지 않습니다. 작곡가 또는 트래비스가 작동하지 않는 것만 큼 나는 잘 작동하지 않습니다. 자동로드가 로컬에서 실행되지만 트래비스 빌드에서는 실행되지 않는 것을 이해하지 못합니다. 누군가 내가 가지고있는이 문제에 관해 밝힐 수 있다면, 나는 매우 감사 할 것입니다.트래커 CI
인터페이스를 찾을 수없는 경우 문제가 구체적으로 표시됩니다 ..."네임 스페이스 \ 네임 스페이스 \ 인터페이스"가 보이지 않을 때 오류가 발생하여 자동로드되어야한다고 생각해서는 안됩니다. 트래비스의 테스트를 위해 아주 잘 로딩.
은 여기에 있습니다 :
PHP Fatal error: Interface 'RestGalleries\Interfaces\User' not found in /home/travis/build/estebanmatias92/RestGalleries/src/RestGalleries/APIs/Flickr/FlickrUser.php on line 15
PHP Stack trace:
PHP 1. {main}() /home/travis/.phpenv/versions/5.4.25/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /home/travis/.phpenv/versions/5.4.25/bin/phpunit:46
PHP 3. PHPUnit_TextUI_Command->run() /home/travis/.phpenv/versions/5.4.25/share/pyrus/.pear/php/PHPUnit/TextUI/Command.php:129
PHP 4. PHPUnit_TextUI_TestRunner->doRun() /home/travis/.phpenv/versions/5.4.25/share/pyrus/.pear/php/PHPUnit/TextUI/Command.php:176
PHP 5. PHPUnit_Framework_TestSuite->run() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:349
PHP 6. PHPUnit_Framework_TestSuite->run() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:705
PHP 7. PHPUnit_Framework_TestSuite->run() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:705
PHP 8. PHPUnit_Framework_TestSuite->runTest() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:745
PHP 9. PHPUnit_Framework_TestCase->run() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:775
PHP 10. PHPUnit_Framework_TestResult->run() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
PHP 11. PHPUnit_Framework_TestCase->runBare() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
PHP 12. PHPUnit_Framework_TestCase->runTest() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:838
PHP 13. ReflectionMethod->invokeArgs() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:983
PHP 14. RestGalleriesTest->testFindUserReturnApiUserObject() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:983
PHP 15. Composer\Autoload\ClassLoader->loadClass() /home/travis/build/estebanmatias92/RestGalleries/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:0
PHP 16. Composer\Autoload\includeFile() /home/travis/build/estebanmatias92/RestGalleries/vendor/composer/ClassLoader.php:269
PHP 17. include() /home/travis/build/estebanmatias92/RestGalleries/vendor/composer/ClassLoader.php:363
는 솔직히 내가 지금 할 수 있다고 생각하지 수 있습니다. github과 실패한 빌드에 대한 코드를 남겨 둡니다 (시간이 지나기 전에는이 코드를 사용하지 못했지만 마지막 빌드는 볼 때까지 남겨 두었습니다).
Github에서 : https://github.com/estebanmatias92/RestGalleries
트래비스 CI 빌드 : https://travis-ci.org/estebanmatias92/RestGalleries/jobs/19337261
당신의 충고에 따라, 나는 역으로 시도했다, 나는 인터페이스에 대한 인터페이스를 변경하고 그것은 (물론, 또한 네임 스페이스를 변경) 작동했습니다. 고맙습니다. – estebanmatias92