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)); }