File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 12
12
* Licensed under The MIT License
13
13
* Redistributions of files must retain the above copyright notice.
14
14
*
15
- * @filesource
16
15
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
17
16
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
18
17
* @package cake
@@ -220,6 +219,7 @@ function write($type, $message) {
220
219
$ logger =& $ self ->_streams [$ key ];
221
220
$ logger ->write ($ type , $ message );
222
221
}
222
+ return true ;
223
223
}
224
224
225
225
/**
Original file line number Diff line number Diff line change 2
2
/**
3
3
* CakeLogTest file
4
4
*
5
- * Long description for file
6
- *
7
5
* PHP versions 4 and 5
8
6
*
9
7
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
@@ -131,7 +129,8 @@ function testConfig() {
131
129
*/
132
130
function testLogFileWriting () {
133
131
@unlink (LOGS . 'error.log ' );
134
- CakeLog::write (LOG_WARNING , 'Test warning ' );
132
+ $ result = CakeLog::write (LOG_WARNING , 'Test warning ' );
133
+ $ this ->assertTrue ($ result );
135
134
$ this ->assertTrue (file_exists (LOGS . 'error.log ' ));
136
135
unlink (LOGS . 'error.log ' );
137
136
You can’t perform that action at this time.
0 commit comments