Google\Cloud\Tests\Logging\PsrLoggerTest::testPsrLoggerUsesDefaults PHP Method

testPsrLoggerUsesDefaults() public method

    public function testPsrLoggerUsesDefaults()
    {
        $resource = ['type' => 'default'];
        $labels = ['testing' => 'labels'];
        $this->connection->writeEntries(['entries' => [['severity' => $this->severity, 'jsonPayload' => ['message' => $this->textPayload], 'logName' => $this->formattedName, 'resource' => $resource, 'labels' => $labels]]])->willReturn([])->shouldBeCalledTimes(1);
        $psrLogger = $this->getPsrLogger($this->connection, $resource, $labels);
        $this->assertNull($psrLogger->log($this->severity, $this->textPayload));
    }