S
S
Sergey K2015-11-03 20:25:55
PHP
Sergey K, 2015-11-03 20:25:55

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

2 answer(s)
D
dmitriy, 2015-11-03
@voodoo_dn

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.

O
OnYourLips, 2015-11-03
@OnYourLips

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 question

Ask a Question

731 491 924 answers to any question