Answer the question
In order to leave comments, you need to log in
PHPStorm + PHPUnit annotations?
Tell me, such a moment. I heard that Netbeans has the ability to add annotations for class methods and then generate a test from these annotations. Is there such a thing for PHPStorm? Googled a lot and couldn't find it.
Answer the question
In order to leave comments, you need to log in
This is done by a utility included with phpunit: skeleton generator . If there is no functionality of a working skeleton-generator in the storm, you can look for a plugin, or you can simply generate tests through the console. If annotations are specified, then the tests will be created with the implementation of the methods.
This is a violation of the OOP https://en.wikipedia.org/wiki/Single_responsibilit... Better not to do it this way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question