This test checks displaying the component (with attributes). >>>>templates/test.tpl <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <opt:component from="$component"> <opt:display str:foo="bar"/> </opt:component> >>>>data.php $view->component = new myComponent; >>>>expected.txt OUTPUT >>>>result.txt VIEW PASSED COMPONENT DISPLAYED WITH: foo: bar