0,
0,
];
if (!
class_exists(SilencedErrorContext::
class)) { return;
} yield 'logs with some deprecations' =>
[ 1,
[ ['message' => 'foo3', 'context' =>
['exception' =>
new \
ErrorException('warning', 0, \E_USER_WARNING
)], 'priority' => 100, 'priorityName' => 'DEBUG'
],
['message' => 'foo', 'context' =>
['exception' =>
new \
ErrorException('deprecated', 0, \E_DEPRECATED
)], 'priority' => 100, 'priorityName' => 'DEBUG'
],
['message' => 'foo2', 'context' =>
['exception' =>
new \
ErrorException('deprecated', 0, \E_USER_DEPRECATED
)], 'priority' => 100, 'priorityName' => 'DEBUG'
],
],
[ ['message' => 'foo3', 'context' =>
['exception' =>
['warning', \E_USER_WARNING
]], 'priority' => 100, 'priorityName' => 'DEBUG'
],
['message' => 'foo', 'context' =>
['exception' =>
['deprecated', \E_DEPRECATED
]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => false
],
['message' => 'foo2', 'context' =>
['exception' =>
['deprecated', \E_USER_DEPRECATED
]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => false
],
],
2,
0,
[100 =>
['count' => 3, 'name' => 'DEBUG'
]],
];