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

testWritesEntry() public method

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