TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
symfony
console
Tests
Logger
ConsoleLoggerTest.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of the Symfony package.
5
*
6
* (c) Fabien Potencier <fabien@symfony.com>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Symfony\Component\Console\Tests\Logger;
13
14
use
Psr\Log\Test\LoggerInterfaceTest
;
15
use
Psr\Log\LogLevel
;
16
use
Symfony\Component\Console\Logger\ConsoleLogger
;
17
use
Symfony\Component\Console\Tests\Fixtures\DummyOutput
;
18
use
Symfony\Component\Console\Output\OutputInterface
;
19
25
class
ConsoleLoggerTest
extends
LoggerInterfaceTest
26
{
30
protected
$output
;
31
35
public
function
getLogger
()
36
{
37
$this->output =
new
DummyOutput
(
OutputInterface::VERBOSITY_VERBOSE
);
38
39
return
new
ConsoleLogger
($this->output, array(
40
LogLevel::EMERGENCY
=>
OutputInterface::VERBOSITY_NORMAL
,
41
LogLevel::ALERT
=>
OutputInterface::VERBOSITY_NORMAL
,
42
LogLevel::CRITICAL
=>
OutputInterface::VERBOSITY_NORMAL
,
43
LogLevel::ERROR
=>
OutputInterface::VERBOSITY_NORMAL
,
44
LogLevel::WARNING
=>
OutputInterface::VERBOSITY_NORMAL
,
45
LogLevel::NOTICE
=>
OutputInterface::VERBOSITY_NORMAL
,
46
LogLevel::INFO
=>
OutputInterface::VERBOSITY_NORMAL
,
47
LogLevel::DEBUG
=>
OutputInterface::VERBOSITY_NORMAL
,
48
));
49
}
50
54
public
function
getLogs
()
55
{
56
return
$this->output->getLogs();
57
}
58
}
Generated on Wed Nov 11 2015 01:51:52 for TYPO3 by
1.8.3