Author: grobmeier
Date: Sun Jul  5 18:03:08 2009
New Revision: 791288

URL: http://svn.apache.org/viewvc?rev=791288&view=rev
Log:
completed test

Modified:
    
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorBasicTest.php

Modified: 
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorBasicTest.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorBasicTest.php?rev=791288&r1=791287&r2=791288&view=diff
==============================================================================
--- 
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorBasicTest.php
 (original)
+++ 
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorBasicTest.php
 Sun Jul  5 18:03:08 2009
@@ -42,32 +42,16 @@
        }
 
        public function testResetConfiguration() {
-               self::markTestIncomplete();
-                
-               $this->testConfigure();
-               //$root = LoggerManager::getRootLogger();
-               $hierarchy = LoggerHierarchy::singleton();
-               var_dump(count($hierarchy->getCurrentLoggers()));
-               LoggerConfiguratorBasic::resetConfiguration();
-               var_dump(count($hierarchy->getCurrentLoggers()));
-        /*
-        $logger = LoggerManager::getLogger('A1');
+               $root = LoggerManager::getRootLogger();
+               $appender = $root->getAppender('A1');
+               self::assertType('LoggerAppenderConsole', $appender);
+               $layout = $appender->getLayout();
+               self::assertType('LoggerLayoutTTCC', $layout);
 
-        $layout = $logger->getLayout();
-        var_dump($layout);
-        
-        var_dump($logger->getName());
-        */
-        //$appender = LoggerManager::getRootLogger()->getAppender('A1');
-        //var_dump($appender);   
+               LoggerConfiguratorBasic::resetConfiguration();
+               $hierarchy = LoggerHierarchy::singleton();
+               
+               self::assertEquals(0, count($hierarchy->getCurrentLoggers()));
+               self::assertEquals(0, count($hierarchy->getCurrentLoggers()));
        }
-
-       /*public function testRootLogger() {
-            $root = LoggerManager::getRootLogger();
-            $a = $root->getAppender('A1');
-            self::assertType('LoggerAppenderConsole', $a);
-            $l = $a->getLayout();
-            self::assertType('LoggerLayoutTTCC', $l);
-    }*/
-
 }


Reply via email to