Author: bernhard Date: Tue Jul 22 07:22:45 2008 New Revision: 29672 Modified: trunk/languages/pipp/docs/testing.pod trunk/languages/pipp/t/php/closures.t
Log: [Pipp PCT] Add test for closures, or anonymous subs, that works with php5.3-200807221230 Modified: trunk/languages/pipp/docs/testing.pod ============================================================================== --- trunk/languages/pipp/docs/testing.pod (original) +++ trunk/languages/pipp/docs/testing.pod Tue Jul 22 07:22:45 2008 @@ -26,9 +26,9 @@ # build PHP 5.3 cd ~/devel/PHP/ - wget http://snaps.php.net/php5.3-200807061430.tar.gz - tar xvzf php5.3-200807061430.tar.gz - cd php5.3-200807061430/ + wget http://snaps.php.net/php5.3-200807221230.tar.gz + tar xvzf php5.3-200807221230.tar.gz + cd php5.3-200807221230/ ./configure make Modified: trunk/languages/pipp/t/php/closures.t ============================================================================== --- trunk/languages/pipp/t/php/closures.t (original) +++ trunk/languages/pipp/t/php/closures.t Tue Jul 22 07:22:45 2008 @@ -2,11 +2,11 @@ =head1 NAME -functions.t - testing functions +closures.t - testing closures =head1 DESCRIPTION -Defining and calling functions. +Defining and calling closures. =cut @@ -23,17 +23,16 @@ # Parrot modules use Parrot::Test; -language_output_is( 'Pipp', <<'END_CODE', <<'END_EXPECTED', 'function with not args' ); +language_output_is( 'Pipp', <<'END_CODE', <<'END_EXPECTED', 'function with no args', todo => 'not implemented yet' ); <?php -function dummy_no_args() { +$dummy_no_args = function () { echo "The function dummy_no_args() has been called.\n"; -} +}; -dummy_no_args(); +$dummy_no_args(); ?> END_CODE The function dummy_no_args() has been called. END_EXPECTED -
