Answer the question
In order to leave comments, you need to log in
Test Driven Development in Symfony?
I'm just getting started with test-driven development. By developing individual services/libraries, I'm already getting profit, but I still don't know how to develop a WEB application through TDD. Perhaps you will find examples from life or just advice? Or does it make sense to cover only services/libraries with tests? As far as I remember, controller tests, which are application-level tests, already deviate somewhat from the TDD methodology and are often used only to make sure that making changes to code not covered by tests will not cause problems.
Answer the question
In order to leave comments, you need to log in
It is convenient to cover controllers with tests if you replace
public function indexAction() {
//...
return $this->render(
'key' => $val
);
}
/**
*@Template()
*/
public function indexAction() {
//...
return [
'key' => $val
];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question