'message' => 'foo2', 'context' =>
['exception' =>
['deprecated', \E_USER_DEPRECATED
]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => false
],
],
2,
0,
[100 =>
['count' => 3, 'name' => 'DEBUG'
]],
];
yield 'logs with some silent errors' =>
[ 1,
[ ['message' => 'foo3', 'context' =>
['exception' =>
new \
ErrorException('warning', 0, \E_USER_WARNING
)], 'priority' => 100, 'priorityName' => 'DEBUG'
],
['message' => 'foo3', 'context' =>
['exception' =>
new SilencedErrorContext(\E_USER_WARNING, __FILE__, __LINE__
)], 'priority' => 100, 'priorityName' => 'DEBUG'
],
['message' => '0', 'context' =>
['exception' =>
new SilencedErrorContext(\E_USER_WARNING, __FILE__, __LINE__
)], 'priority' => 100, 'priorityName' => 'DEBUG'
],
],
[ ['message' => 'foo3', 'context' =>
['exception' =>
['warning', \E_USER_WARNING
]], 'priority' => 100, 'priorityName' => 'DEBUG'
],
['message' => 'foo3', 'context' =>
['exception' =>
[\E_USER_WARNING
]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => true
],
['message' => '0', 'context' =>
['exception' =>
[\E_USER_WARNING
]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => true
],
],
0,
2,
];
}}