Author: bernhard
Date: Thu Jan 1 11:52:39 2009
New Revision: 34759
Modified:
trunk/languages/pipp/t/php/oo.t
Log:
[Pipp] add a TODO test
Modified: trunk/languages/pipp/t/php/oo.t
==============================================================================
--- trunk/languages/pipp/t/php/oo.t (original)
+++ trunk/languages/pipp/t/php/oo.t Thu Jan 1 11:52:39 2009
@@ -20,7 +20,7 @@
use FindBin;
use lib "$FindBin::Bin/../../../../lib", "$FindBin::Bin/../../lib";
-use Parrot::Test tests => 8;
+use Parrot::Test tests => 9;
language_output_is( 'Pipp', <<'CODE', <<'OUT', 'definition of a class' );
<?php
@@ -219,3 +219,18 @@
four
OUT
+language_output_is( 'Pipp', <<'CODE', <<'OUT', 'class with constructor', todo
=> 'constructor not called yet' )
+<?php
+
+class Foo {
+ function __construct() {
+ echo "method __construct() of class Foo was called.\n";
+ }
+}
+
+$foo = new Foo;
+
+?>
+CODE
+method __construct() of class Foo was called.
+OUT