Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")
class SomeController extends Zend_Controller_Action
{
public function indexAction()
{
$xml = /* generate bunch of xml dependent on business logic*/;
echo xsltTransform($xml, 'xsltfilename');
}
}
My question is exactly how am I going to test the business logic here?
We seriously won't need to test the XSLT but everything up until that function call (xsltTransform()) will need to be tested. But how?