Google\Cloud\Tests\Logging\PsrLoggerTest::testWritesEntryWithDefinedLevels PHP Метод

testWritesEntryWithDefinedLevels() публичный Метод

    public function testWritesEntryWithDefinedLevels($level)
    {
        $this->connection->writeEntries(['entries' => [['severity' => array_flip(Logger::getLogLevelMap())[$level], 'jsonPayload' => ['message' => $this->textPayload], 'logName' => $this->formattedName, 'resource' => $this->resource]]])->willReturn([])->shouldBeCalledTimes(1);
        $psrLogger = $this->getPsrLogger($this->connection);
        $this->assertNull($psrLogger->{$level}($this->textPayload));
    }