What should I test in phpunit?

I don't know if this is too localized a question, but I don't know what I should test on a module using PHPUnit. Like, for example, in a simple user registration / login system, what should I test?

Hope you understand what I had in mind and enlighten me.

+5
source share
1 answer

PHPUnit is a collection of testing modules, hence the name. Unit testing is, by definition, writing tests for each unit - that is, each class, each method - as separately as possible from any other part of the system. Every thing that users can use, you want to try to verify that it is - and only it, among other things, performs the functions as indicated.

, (, , ) , . : "... , , ?", , , . , , ; , , , .

+5

All Articles