Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.0

Request #19023 Multiple tests in one code block
Submitted: 2011-11-15 01:12 UTC
From: maikel Assigned:
Status: Open Package: Testing_DocTest (version 0.5.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 9 + 33 = ?

 
 [2011-11-15 01:12 UTC] maikel (Maikel Linke)
Description: ------------ The actual parser returns an error, if you mix code to execute and expected results. Test script: --------------- <?php /** * This should be tested with phpdt. * * <code> * echo "Foo1"; * // expects: * // Foo1 * * echo "Foo2"; * // expects: * // Foo2 * </code> */ ?> Expected result: ---------------- Processing test_multi.php [PASS] file level test Total time : 0.0862 sec. Passed tests : 1 Skipped tests : 0 Failed tests : 0 Actual result: -------------- Error: Unexpected code line: echo "Foo!"; Type "/usr/bin/phpdt --help" to get help.

Comments