Stanislav Malyshev wrote: > Also refine namespaced includes This seems not to work the way I expected:
TestCase.php 1 <?php 2 namespace PEAR:PHPUnit { 3 class TestCase { 4 } 5 } 6 ?> FooTest.php 1 <?php 2 require 'TestCase.php'; 3 4 class FooTest extends PEAR:PHPUnit::TestCase { 5 } 6 ?> CLI.php 1 <?php 2 namespace PEAR:PHPUnit { 3 class CLI { 4 public static function main() { 5 include 'FooTest.php'; 6 $o = new FooTest; 7 } 8 } 9 } 10 11 PEAR:PHPUnit::CLI::main(); 12 ?> E:\>php cli.php Fatal error: Class 'footest' not found in E:\cli.php on line 6 -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php