Beispiel #1
0
 function testAssertLog()
 {
     Pluf_Log::activeAssert();
     $GLOBALS['_PX_config']['log_delayed'] = true;
     assert('Pluf_Log::alog("hello")');
     $this->assertEqual(count(Pluf_Log::$stack), 1);
     $GLOBALS['_PX_config']['log_delayed'] = false;
     assert('Pluf_Log::alog("hello")');
     $this->assertEqual(count(Pluf_Log::$stack), 0);
     $this->assertEqual(2, count(file($this->logfile)));
 }
Beispiel #2
0
 function testAssertLog()
 {
     if (Pluf::f('test_log_testremote', false) == false) {
         return;
     }
     Pluf_Log::activeAssert();
     $GLOBALS['_PX_config']['log_delayed'] = true;
     assert('Pluf_Log::alog("hello")');
     $this->assertEqual(count(Pluf_Log::$stack), 1);
     $GLOBALS['_PX_config']['log_delayed'] = false;
     assert('Pluf_Log::alog("hello")');
     $this->assertEqual(count(Pluf_Log::$stack), 0);
 }