K
K
krll-k2014-05-21 00:01:27
PHP
krll-k, 2014-05-21 00:01:27

Testing and analysis of php code is required. What is the equivalent of phpDocumentor and PHPUnit?

I use the Sublime Text text editor, so please do not offer built-in solutions in your favorite IDEs. You need a fresh, open and well-documented library.
I also use the Composer package manager. How is Symfony or Zend code tested? I use Slim micro framework, but I think it's possible to use something more universal. I build my applications on the RESTful principle, I use JQuery in the client web application.
The problem is that I don't use phpDocumentor for auto-documentation, I use it to determine the namespaces available to me. I don't use unit testing yet, but I would like to try. Testing and analysis of php code is required.
What is the equivalent of phpDocumentor and PHPUnit ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-05-21
@krll-k

For TDD, I recommend PhpSpec2 instead of PhpUnit. The main pluses are code generation, specs instead of test cases (more human-readable syntax), and very handy sugar for mocks.
I also recommend looking at Behat for functional tests (for BDD).
What do you mean by parsing PHP code? There are static analyzers, but as I understand it, you are trying to somehow live without a normal autocomplete. Maybe you should not suffer nonsense, but just use the IDE? Yes, there are plugins for sublime .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question