Example #1
0
 public function testFail()
 {
     $Reg1 = Registry::getInstance();
     $Reg1->set('test', '1234');
     $Reg2 = Registry::getInstance();
     $this->assertNotEquals($Reg2->get('test'), '1111');
 }
Example #2
0
 /**
  *  Creates and configures the default logger.
  */
 public function __construct()
 {
     $this->_Registry = Registry::getInstance();
     $Destination = new Log\Destination\StdOut(new Log\Format\PlainText());
     $Log = new Log\Logger($Destination);
     $this->_Logger = new Log\LogMux();
     $this->_Logger->addLog($Log);
     $this->_Logger->setRunLevel(Log\ILogger::INFO);
     parent::__construct($this->_Logger);
 }