tagged release 0.7.1
[parrot.git] / languages / pipp / t / php / functions.t
blobdb1827d92dbdf46f5419deefd76e56fb8910c191
1 # $Id$
3 =head1 NAME
5 functions.t - testing functions
7 =head1 DESCRIPTION
9 Defining and calling functions.
11 =cut
13 # pragmata
14 use strict;
15 use warnings;
17 use FindBin;
18 use lib "$FindBin::Bin/../../lib";
20 # core Perl modules
21 use Test::More     tests => 1;
23 # Parrot modules
24 use Parrot::Test;
26 language_output_is( 'Pipp', <<'END_CODE', <<'END_EXPECTED', 'function with not args' );
27 <?php
29 function dummy_no_args()  {
30   echo "The function dummy_no_args() has been called.\n";
33 dummy_no_args();
36 END_CODE
37 The function dummy_no_args() has been called.
38 END_EXPECTED