doctest extensions for framework

- Added tmplCode flag for complex framework template
- Added --template-code from command line for complex framework template
- Added doctest for new tmplCode flag
- Fixed docs/test1.php file
- Fixed return code of phpdt for fail or error in doctest execution and
parsing
- Fixed execution of doctest even if parsing error occur