New answers tagged


In the end I didn't find a way to do this through mocking, but it is very simple to implement a class that does everything I need from the logger: class JLog { const DEBUG = 5; const INFO = 4; const WARNING = 3; const ERROR = 2; private static $messages; public static function add( $message, $level, $report ) { if (!self::$...

Top 50 recent answers are included