예제 #1
0
 public function setUp()
 {
     parent::setUp();
     // Create the container in the normal environment (because in tests logging is disabled)
     $containerFactory = new ContainerFactory();
     $container = $containerFactory->create();
     StaticContainer::set($container);
     Log::unsetInstance();
     Config::getInstance()->log['string_message_format'] = self::STRING_MESSAGE_FORMAT;
     Config::getInstance()->log['logger_file_path'] = self::getLogFileLocation();
     Config::getInstance()->log['log_level'] = Log::INFO;
     @unlink(self::getLogFileLocation());
     Log::$debugBacktraceForTests = "dummy backtrace";
 }