cvs: ZendEngine2(PHP_5_3) /tests ns_069.inc ns_069.phpt

"Marcus Boerger" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvshelly1218541936@cvsserver>
helly		Tue Aug 12 11:52:16 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /ZendEngine2/tests	ns_069.inc ns_069.phpt 
  Log:
  - MFH Add new test
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/ns_069.inc?view=markup&rev=1.1
Index: ZendEngine2/tests/ns_069.inc
+++ ZendEngine2/tests/ns_069.inc
<?php

var_dump((binary)__NAMESPACE__);

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/ns_069.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/ns_069.phpt
+++ ZendEngine2/tests/ns_069.phpt
--TEST--
069: Include inside namespaced method
--FILE--
<?php

namespace foo;

class Test {
  static function f() {
    var_dump((binary)__NAMESPACE__);
    include __DIR__ . '/ns_069.inc';
    var_dump((binary)__NAMESPACE__);
  }
}

Test::f();

?>
===DONE===
--EXPECT--
string(3) "foo"
string(0) ""
string(3) "foo"
===DONE===



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.