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

Request #15948 Add ability to enter into interactive mode inside a doctest
Submitted: 2009-02-26 17:57 UTC
From: sofia Assigned: izi
Status: Wont fix Package: Testing_DocTest
PHP Version: 5.2.1 OS: irrelevant
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 : 22 - 12 = ?

 
 [2009-02-26 17:57 UTC] sofia (sofia cardita)
Description: ------------ I'm not sure this is feasible but it would be really useful. I was thinking something along what's described here http://bluedynamics.com/articles/jens/interlude-write-python-doctests- interactive . We would have have some kind of stopword, eg //interact , that would signal the include of a file which would import the code that had been run up until that point into an interactive session. As soon as the user exited the session the doctest would continue its normal business. Do you think this is feasible in php? Test script: --------------- Expected result: ---------------- Actual result: --------------

Comments

 [2009-02-26 17:59 UTC] sofia (sofia cardita)
That link got cut off, it's http://bit.ly/doctests-interactive - Sofia
 [2009-02-27 13:14 UTC] izi (David Jean Louis)
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: izi
Hi Sofia, I like the idea, maybe this could be implemented by using the PHP_Shell (https://pear.php.net/package/PHP_Shell) PEAR package, but I'm not sure this package is still very maintained alas :( I'll look at it when I have more time, meanwhile feel free to try something if you can ! cheers, David
 [2010-04-10 18:31 UTC] izi (David Jean Louis)
-Status: Analyzed +Status: Wont fix
Closing this bug, I won't have time to implement this, if someone comes with a patch for this I'll be happy to integrate it. Regards, -- David