Re: first php 5 class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 30, 2008 3:22 PM, Greg Donald <gdonald@xxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux