Author: bernhard
Date: Tue Jan 20 06:06:21 2009
New Revision: 35804

Modified:
   trunk/languages/pipp/t/php/oo.t

Log:
[Pipp] add test with member declaration after method declaration

Modified: trunk/languages/pipp/t/php/oo.t
==============================================================================
--- trunk/languages/pipp/t/php/oo.t     (original)
+++ trunk/languages/pipp/t/php/oo.t     Tue Jan 20 06:06:21 2009
@@ -20,7 +20,7 @@
 use FindBin;
 use lib "$FindBin::Bin/../../../../lib", "$FindBin::Bin/../../lib";
 
-use Parrot::Test tests => 14;
+use Parrot::Test tests => 15;
 
 language_output_is( 'Pipp', <<'CODE', <<'OUT', 'definition of a class' );
 <?php
@@ -320,3 +320,22 @@
 static member $a
 OUT
 
+language_output_is( 'Pipp', <<'CODE', <<'OUT', 'static member after function', 
todo => 'not yet' );
+<?php
+
+class A {
+    function echo_static () {
+        echo self::$a;
+    }
+
+    public static $a = "static member \$a\n";
+}
+
+$a = new A;
+$a->echo_static();
+
+?>
+CODE
+static member $a
+OUT
+

Reply via email to