|
|
@@ -122,24 +122,4 @@ class ConsoleLogTest extends TestCase
|
|
|
$this->assertSame('error', $entry['level']);
|
|
|
$this->assertSame('oh "noes"', $entry['message']);
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * Test deprecated dateFormat option
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function testDeprecatedDateFormat()
|
|
|
- {
|
|
|
- $this->deprecated(function () {
|
|
|
- $filename = tempnam(sys_get_temp_dir(), 'cake_log_test');
|
|
|
- $log = new ConsoleLog([
|
|
|
- 'stream' => $filename,
|
|
|
- 'dateFormat' => 'c',
|
|
|
- ]);
|
|
|
- $log->log('error', 'oh noes');
|
|
|
- $fh = fopen($filename, 'r');
|
|
|
- $line = fgets($fh);
|
|
|
- $this->assertMatchesRegularExpression('/2[0-9]{3}-[0-9]+-[0-9]+T[0-9]+:[0-9]+:[0-9]+\+\d{2}:\d{2} error: oh noes/', $line);
|
|
|
- });
|
|
|
- }
|
|
|
}
|