Req #15948 [Opn]: Add ability to enter into interactive mode inside a doctest

From: Date: Thu, 26 Feb 2009 12:59:21 +0000
Subject: Req #15948 [Opn]: Add ability to enter into interactive mode inside a doctest
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-79@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=15948&edit=1 ID: 15948 Updated by: sofiacardita@gmail.com Reported By: sofiacardita at gmail dot com Summary: Add ability to enter into interactive mode inside a doctest Status: Open Type: Feature/Change Request Package: Testing_DocTest Operating System: irrelevant PHP Version: 5.2.1 Roadmap Versions: New Comment: That link got cut off, it's http://bit.ly/doctests-interactive - Sofia Previous Comments: ------------------------------------------------------------------------ [2009-02-26 12:57:29] sofia 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: -------------- ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=15948&edit=1

« previous php.pear.bugs (#79) next »