@@ -4,17 +4,11 @@ class Log_test extends CI_TestCase {
44 public function test_configuration ()
55 {
66 $ path = new ReflectionProperty ('CI_Log ' , '_log_path ' );
7- $ path ->setAccessible (TRUE );
87 $ threshold = new ReflectionProperty ('CI_Log ' , '_threshold ' );
9- $ threshold ->setAccessible (TRUE );
108 $ date_fmt = new ReflectionProperty ('CI_Log ' , '_date_fmt ' );
11- $ date_fmt ->setAccessible (TRUE );
129 $ file_ext = new ReflectionProperty ('CI_Log ' , '_file_ext ' );
13- $ file_ext ->setAccessible (TRUE );
1410 $ file_perms = new ReflectionProperty ('CI_Log ' , '_file_permissions ' );
15- $ file_perms ->setAccessible (TRUE );
1611 $ enabled = new ReflectionProperty ('CI_Log ' , '_enabled ' );
17- $ enabled ->setAccessible (TRUE );
1812
1913 $ this ->ci_set_config ('log_path ' , '/root/ ' );
2014 $ this ->ci_set_config ('log_threshold ' , 'z ' );
@@ -54,7 +48,6 @@ public function test_format_line()
5448 $ instance = new CI_Log ();
5549
5650 $ format_line = new ReflectionMethod ($ instance , '_format_line ' );
57- $ format_line ->setAccessible (TRUE );
5851 $ this ->assertEquals (
5952 $ format_line ->invoke ($ instance , 'LEVEL ' , 'Timestamp ' , 'Message ' ),
6053 "LEVEL - Timestamp --> Message " .PHP_EOL
0 commit comments