Fixed in SVN. The issue was that PHPUnit runs isolated tests by piping a generated script into STDIN of the sub-process, and in such a case, STDIN is not available in scripts.
David On 23.12.2011, at 16:23, Van Daele, Koen wrote: > Hi, > > I’m having another issues with unit testing. > > I’m testing a view that's called through a console action. > > I get the following error: > > Use of undefined constant STDIN - assumed 'STDIN' > Comes from: > /home/vandaeko/Projecten/Thesaurus/libs/agavi/src/request/AgaviConsoleRequest.class.php:85 > > Seems to be a constant that's normally available in cli mode, but isn't when > running unit tests. Just running the action works fine. Only the unit test > fails. It even fails when just asserting that the view handles a certain > output type. > > Encountering this on agavi trunk, php 5.3.5 and phpunit 3.6.5. > > Vriendelijke groeten, > > Koen Van Daele > IT-verantwoordelijke > [email protected] > tel. +32 2 553 16 82 > fax. +32 2 553 16 55 > > Onroerend Erfgoed > Koning Albert II-laan 19 bus 5 > 1210 Brussel > www.onroerenderfgoed.be > > _______________________________________________ > users mailing list > [email protected] > http://lists.agavi.org/mailman/listinfo/users
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
