On Jan 30, 2008 3:22 PM, Greg Donald <[EMAIL PROTECTED]> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php