public function testWritesEntry() { $this->connection->writeEntries(['entries' => [['textPayload' => $this->textPayload, 'logName' => $this->formattedName, 'resource' => $this->resource]]])->willReturn([])->shouldBeCalledTimes(1); $logger = $this->getLogger($this->connection); $this->assertNull($logger->write($this->textPayload, ['resource' => $this->resource])); }