Kamil Ruczyński

Results 15 comments of Kamil Ruczyński

Thanks for the translation, but please keep the English version as default and only add a link to french version maybe in the Introduction section.

Yeah, I also have experienced using mocks for almost everything, especially when using phpspec 🙈. Did you see this section: https://github.com/sarven/unit-testing-tips#always-prefer-own-test-double-classes-than-those-provided-by-a-framework? I have an ambitious plan for this year to...

I will try to cover these topics in the future, now just quick explanations: 1) It's probably the problem when TDD is not used. TDD helps us write testable code....

> The only thing we care about is whether refactoring such code doesn't break anything. This is a great case for writing broad integration tests not unit tests with mocks....

@aszenz > I really wish guides would separate out TDD and testing in general, majority of the projects don't use TDD, but would still like to verify their code works....

@sargath > I agree with both of you, although as usual, it all depends. Sometimes legacy !== legacy. > > Mocking is required when the decomposition strategy has failed. >...

@browner12 if you mean deferred providers, those changes don't touch that functionality directly. Deferred providers are in the property: deferredServices loadProviders property was used only in the method: markAsRegistered, where...

@taylorotwell A fresh application contains a small number of providers, so it isn't even shown by Blackfire as a significant cost. However, I've added 300 providers to some fresh app,...

@driesvints thanks for clarifying @taylorotwell could you have another look? I'm not sure if you received a notification about my response, because it was written when the PR was still...

@taylorotwell As I've written, this isn't relevant for small apps with only a few providers. So I can't prepare such a comparison for "a normal app with one database query",...