Google\Cloud\Tests\Logging\LoggerTest::testOverwritesEntryOptionsAndWrites PHP Méthode

testOverwritesEntryOptionsAndWrites() public méthode

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