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

[email protected]
Newsgroups perl.cvs.parrot
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.