Front page | perl.cvs.parrot |
Postings from January 2009
[svn:parrot] r35757 - trunk/languages/pipp/t/php
From:
bernhard
Date:
January 19, 2009 07:15
Subject:
[svn:parrot] r35757 - trunk/languages/pipp/t/php
Message ID:
20090119151536.6FDE6CB9AE@x12.develooper.com
Author: bernhard
Date: Mon Jan 19 07:15:35 2009
New Revision: 35757
Modified:
trunk/languages/pipp/t/php/namespace.t
Log:
[Pipp] fix expected test output
Modified: trunk/languages/pipp/t/php/namespace.t
==============================================================================
--- trunk/languages/pipp/t/php/namespace.t (original)
+++ trunk/languages/pipp/t/php/namespace.t Mon Jan 19 07:15:35 2009
@@ -24,7 +24,7 @@
use FindBin;
use lib "$FindBin::Bin/../../../../lib", "$FindBin::Bin/../../lib";
-use Parrot::Test tests => 7;
+use Parrot::Test tests => 8;
language_output_is( 'Pipp', <<'CODE', <<'OUT', 'parsing of namespace directive' );
<?php
@@ -109,6 +109,7 @@
?>
CODE
FOO in A
+FOO in A
FOO in A\B
OUT
@@ -140,7 +141,7 @@
=cut
-language_output_is( 'Pipp', <<'CODE', <<'OUT', 'namespace with constant', todo => 'not yet' );
+language_output_is( 'Pipp', <<'CODE', <<'OUT', 'namespace with constant' );
<?php
namespace A {
@@ -168,24 +169,25 @@
?>
CODE
FOO in A
-FOO in A::B
+FOO in A\B
FOO in A
-FOO in A::B
-FOO in A::B
+FOO in A\B
+FOO in A\B
FOO in A
+
OUT
-language_output_is( 'Pipp', <<'CODE', <<'OUT', 'namespace with constant', todo => 'not implemented yet' );
+language_output_is( 'Pipp', <<'CODE', <<'OUT', 'namespace with constant' );
<?php
namespace {
-const FOO = "FOO in root.\n";
+const FOO = "FOO in root\n";
}
namespace A\B {
-const FOO = "FOO in A::B\n";
+const FOO = "FOO in A\\B\n";
echo FOO;
echo \A\B\FOO;
@@ -203,11 +205,11 @@
?>
CODE
-FOO in A::B
-FOO in A::B
+FOO in A\B
+FOO in A\B
FOO in root
FOO in root
-FOO in A::B
+FOO in A\B
FOO in root
OUT
-
[svn:parrot] r35757 - trunk/languages/pipp/t/php
by bernhard