tests/Nabu/LoggerHandler/FileTest.php 1 location
|
@@ 17-27 (lines=11) @@
|
| 14 |
|
public static $log_file_name; |
| 15 |
|
public static $log_file_path; |
| 16 |
|
|
| 17 |
|
public static function setUpBeforeClass() |
| 18 |
|
{ |
| 19 |
|
self::$log_file_name = "File_test.log"; |
| 20 |
|
self::$log_file_path = DILMUN_LOGS_DIR; |
| 21 |
|
self::$full_log_location = DILMUN_LOGS_DIR . "File_test.log"; |
| 22 |
|
|
| 23 |
|
if(file_exists(self::$full_log_location)) |
| 24 |
|
{ |
| 25 |
|
unlink(self::$full_log_location); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
protected function assertPreconditions() |
| 30 |
|
{ |
tests/Nabu/LoggerTest.php 1 location
|
@@ 20-30 (lines=11) @@
|
| 17 |
|
*/ |
| 18 |
|
public static $log_file; |
| 19 |
|
|
| 20 |
|
public static function setUpBeforeClass() |
| 21 |
|
{ |
| 22 |
|
self::$full_log_location = DILMUN_LOGS_DIR . "Logger_test.log"; |
| 23 |
|
|
| 24 |
|
if (file_exists(self::$full_log_location)) { |
| 25 |
|
unlink(self::$full_log_location); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
self::$log_file = new File(self::$full_log_location); |
| 29 |
|
self::$log_file->initialize(); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
protected function assertPreconditions() |
| 33 |
|
{ |
tests/Nabu/StaticLoggerTest.php 1 location
|
@@ 17-28 (lines=12) @@
|
| 14 |
|
*/ |
| 15 |
|
public static $log_file; |
| 16 |
|
|
| 17 |
|
public static function setUpBeforeClass() |
| 18 |
|
{ |
| 19 |
|
self::$full_log_location = DILMUN_LOGS_DIR . "StaticLogger_test.log"; |
| 20 |
|
|
| 21 |
|
if(file_exists(self::$full_log_location)) |
| 22 |
|
{ |
| 23 |
|
unlink(self::$full_log_location); |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
self::$log_file = new File(self::$full_log_location); |
| 27 |
|
self::$log_file->initialize(); |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
protected function assertPreconditions() |
| 31 |
|
{ |