28 $record = $this->
getRecord($level,
'test'.$method);
29 $this->assertFalse(
$handler->{
'has'.$method}($record),
'has'.$method);
30 $this->assertFalse(
$handler->{
'has'.$method.
'ThatContains'}(
'test'),
'has'.$method.
'ThatContains');
31 $this->assertFalse(
$handler->{
'has'.$method.
'ThatPasses'}(
function ($rec) {
33 }),
'has'.$method.
'ThatPasses');
34 $this->assertFalse(
$handler->{
'has'.$method.
'ThatMatches'}(
'/test\w+/'));
35 $this->assertFalse(
$handler->{
'has'.$method.
'Records'}(),
'has'.$method.
'Records');
38 $this->assertFalse(
$handler->{
'has'.$method}(
'bar'),
'has'.$method);
39 $this->assertTrue(
$handler->{
'has'.$method}($record),
'has'.$method);
40 $this->assertTrue(
$handler->{
'has'.$method}(
'test'.$method),
'has'.$method);
41 $this->assertTrue(
$handler->{
'has'.$method.
'ThatContains'}(
'test'),
'has'.$method.
'ThatContains');
42 $this->assertTrue(
$handler->{
'has'.$method.
'ThatPasses'}(
function ($rec) {
44 }),
'has'.$method.
'ThatPasses');
45 $this->assertTrue(
$handler->{
'has'.$method.
'ThatMatches'}(
'/test\w+/'));
46 $this->assertTrue(
$handler->{
'has'.$method.
'Records'}(),
'has'.$method.
'Records');
56 array(
'Emergency', Logger::EMERGENCY),
57 array(
'Alert' , Logger::ALERT),
58 array(
'Critical' , Logger::CRITICAL),
59 array(
'Error' , Logger::ERROR),
60 array(
'Warning' , Logger::WARNING),
61 array(
'Info' , Logger::INFO),
62 array(
'Notice' , Logger::NOTICE),
testHandler($method, $level)
methodProvider
getRecord($level=Logger::WARNING, $message='test', $context=array())
Create styles array
The data for the language used.
Used for testing purposes.