Re: first php 5 class

From: Date: Wed, 30 Jan 2008 20:33:00 +0000
Subject: Re: first php 5 class
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-268371@lists.php.net to get a copy of this message
On Jan 30, 2008 3:22 PM, Greg Donald <gdonald@gmail.com> wrote: > An xhr request needs to be tested to see if your javascript fired when > expected and equally important what was sent back, and did what was > sent back land in the DOM where you expected it to. Rails provides > that and much more. ill admit the prospect of doing that programmattically is enticing. scriptaculous has a unit testing framework, one class really, that i intend to look into. btw. i cooked up an abbreviated spl for you ;) <?php class RII extends RecursiveIteratorIterator {} class RAI extends RecursiveArrayIterator {} $testData = array('a', 'b', 'c', array('d', 'e', 'f', array('g', 'h', 'i'))); foreach(new RII(new RAI($testData)) as $key => $val) { echo "$key => $val" . PHP_EOL; } ?> -nathan

« previous php.general (#268371) next »