0

i am wondering how the contributions on framework like symfony or laravel works.

For example if i clone the symfony repository i'll have the src folder that create the package. And when this package is used there is other folder like in the symfony skeleton.

So how is it possible to develop and test the code without publishing the package ?

3
  • Please share more details. All components contain a test directory, and there is a phpunit.xml.dist in the root folder. What else is missing from your point of view? Commented Jan 5, 2022 at 12:23
  • i meant when you are making changes on a project like symfony, how you run your code and test it manualy without publishing it to pakagist Commented Jan 5, 2022 at 12:28
  • You check the code out and run your test suite Commented Jan 5, 2022 at 12:31

1 Answer 1

0

You can write tests for the package code and also install the package from your local directory to kind of do the integration testing. Also you can run composer require symfony/package:dev-master#<commit hash> to install specific commit package version.

This is answer would be helpful: https://stackoverflow.com/a/29995226/4620016

Sign up to request clarification or add additional context in comments.

2 Comments

So if i understand it right, it would be possible to have a project that is like the symfony skeleton where you change the package sources by the path of the source symfony package ?
Yes, you can have a local project with dev versions of dependencies and special test cases for them. Also you can use composer require symfony/symfony:dev-master#<commit> to install package with specific commit version.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.