109 lines
3.4 KiB
YAML
109 lines
3.4 KiB
YAML
name: ConsoleLoggerTest
|
|
class_comment: "# * @author K\xE9vin Dunglas <dunglas@gmail.com>\n# * @author Jordi\
|
|
\ Boggiano <j.boggiano@seld.be>"
|
|
dependencies:
|
|
- name: TestCase
|
|
type: class
|
|
source: PHPUnit\Framework\TestCase
|
|
- name: InvalidArgumentException
|
|
type: class
|
|
source: Psr\Log\InvalidArgumentException
|
|
- name: LoggerInterface
|
|
type: class
|
|
source: Psr\Log\LoggerInterface
|
|
- name: LogLevel
|
|
type: class
|
|
source: Psr\Log\LogLevel
|
|
- name: ConsoleLogger
|
|
type: class
|
|
source: Symfony\Component\Console\Logger\ConsoleLogger
|
|
- name: BufferedOutput
|
|
type: class
|
|
source: Symfony\Component\Console\Output\BufferedOutput
|
|
- name: OutputInterface
|
|
type: class
|
|
source: Symfony\Component\Console\Output\OutputInterface
|
|
- name: DummyOutput
|
|
type: class
|
|
source: Symfony\Component\Console\Tests\Fixtures\DummyOutput
|
|
properties: []
|
|
methods:
|
|
- name: getLogs
|
|
visibility: public
|
|
parameters: []
|
|
comment: "# * @author K\xE9vin Dunglas <dunglas@gmail.com>\n# * @author Jordi Boggiano\
|
|
\ <j.boggiano@seld.be>\n# */\n# class ConsoleLoggerTest extends TestCase\n# {\n\
|
|
# protected DummyOutput $output;\n# \n# public function getLogger(): LoggerInterface\n\
|
|
# {\n# $this->output = new DummyOutput(OutputInterface::VERBOSITY_VERBOSE);\n\
|
|
# \n# return new ConsoleLogger($this->output, [\n# LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,\n\
|
|
# LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,\n# LogLevel::CRITICAL\
|
|
\ => OutputInterface::VERBOSITY_NORMAL,\n# LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,\n\
|
|
# LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,\n# LogLevel::NOTICE\
|
|
\ => OutputInterface::VERBOSITY_NORMAL,\n# LogLevel::INFO => OutputInterface::VERBOSITY_NORMAL,\n\
|
|
# LogLevel::DEBUG => OutputInterface::VERBOSITY_NORMAL,\n# ]);\n# }\n# \n# /**\n\
|
|
# * Return the log messages in order.\n# *\n# * @return string[]"
|
|
- name: testOutputMapping
|
|
visibility: public
|
|
parameters:
|
|
- name: logLevel
|
|
- name: outputVerbosity
|
|
- name: isOutput
|
|
- name: addVerbosityLevelMap
|
|
default: '[]'
|
|
comment: '# * @dataProvider provideOutputMappingParams'
|
|
- name: provideOutputMappingParams
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testHasErrored
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testImplements
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testLogsAtAllLevels
|
|
visibility: public
|
|
parameters:
|
|
- name: level
|
|
- name: message
|
|
comment: '# * @dataProvider provideLevelsAndMessages'
|
|
- name: provideLevelsAndMessages
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testThrowsOnInvalidLevel
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testContextReplacement
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testObjectCastToString
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testContextCanContainAnything
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testContextExceptionKeyCanBeExceptionOrOtherValues
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: __toString
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
traits:
|
|
- PHPUnit\Framework\TestCase
|
|
- Psr\Log\InvalidArgumentException
|
|
- Psr\Log\LoggerInterface
|
|
- Psr\Log\LogLevel
|
|
- Symfony\Component\Console\Logger\ConsoleLogger
|
|
- Symfony\Component\Console\Output\BufferedOutput
|
|
- Symfony\Component\Console\Output\OutputInterface
|
|
- Symfony\Component\Console\Tests\Fixtures\DummyOutput
|
|
interfaces: []
|