countScreams example

$logs = array_map(function D$v) {
            if (isset($v['context']['exception'])) {
                $e = &$v['context']['exception'];
                $e = isset($e["\0*\0message"]) ? [$e["\0*\0message"]$e["\0*\0severity"]] : [$e["\0Symfony\Component\ErrorHandler\Exception\SilencedErrorContext\0severity"]];
            }

            return $v;
        }$c->getLogs()->getValue(true));
        $this->assertEquals($expectedLogs$logs);
        $this->assertEquals($expectedDeprecationCount$c->countDeprecations());
        $this->assertEquals($expectedScreamCount$c->countScreams());

        if (isset($expectedPriorities)) {
            $this->assertSame($expectedPriorities$c->getPriorities()->getValue(true));
        }
    }

    public static function getCollectTestData()
    {
        yield 'simple log' => [
            1,
            [['message' => 'foo', 'context' => [], 'priority' => 100, 'priorityName' => 'DEBUG']],
            [[
Home | Imprint | This part of the site doesn't use cookies.