0

When working with PHP frameworks, do I have to conceive unit tests for controllers and other pieces.

I don't know if it amounts to testing the frameworks components what are already well-tested.

My question is what type of code is supposed to be unit-tested, when working with PHP framworks.

Thank you in advance.

3
  • You never write unit tests for controllers; you write integration tests for them. Regardless of the framework, all controllers should have integration tests. Commented May 25, 2014 at 10:15
  • DO you mean functional tests ? Commented May 25, 2014 at 10:25
  • Yes and no. Functional and integration tests aren't exactly the same, technicallly, but do have enough in common for the two terms to be used as equivalents in many cases. This answer might be interesting :). Commented May 25, 2014 at 13:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.