develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r35804 - trunk/languages/pipp/t/php

From:
bernhard
Date:
January 20, 2009 06:06
Subject:
[svn:parrot] r35804 - trunk/languages/pipp/t/php
Message ID:
20090120140622.402EDCB9AE@x12.develooper.com
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
+



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About