views:

25

answers:

0

I'm creating a php cli program to generate unit tests for our project. in the command line a enter a sourcefile and a destination file. If the destination file allready exists I parse it with Zend_CodeGenerator_File::fromReflection(). The destination file is the unit test class file. Then I check what methods need to be added to the unit tests using the setMethod method. Anyways, I'm not adding or editing the docblocks in the generation process.

Everything is working well but every time i generate the unit test file a new linefeed is added to docblocks so this is what happens:

//Original:  
/**  
 * Docblock comment  
 */  

//after new generation  
/**  
 * Docblock comment  
 *  
 */  

//after next generation  
/**  
 * Docblock comment  
 *  
 *  
 */  

has anyone had problems with this? How could i solve this?