tagged release 0.6.4
[parrot.git] / languages / pipp / t / php / namespace.t
blobcf3bd6041b83a97caa4b46cf6b0424ce8fd54bf8
1 # $Id$
3 =head1 NAME
5 namespace.t - testing packages, aka namespaces
7 =head1 DESCRIPTION
9 Working with namespaces.
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', 'namespace with dummy class', todo => 'no implemented yet' );
27 <?php
29 namespace A::B;
31 class Dings {
32     
33     function bums() {
34         echo "The function bums() in class A::Dings has been called.\n";
35     }
38 $dings = new A::Dings;
39 $dings->bums();
42 END_CODE
43 The function bums() in class A::Dings has been called.
44 END_EXPECTED