Google\Cloud\Tests\Logging\LoggerTest::testGetsEntriesWithAdditionalFilter PHP 메소드

testGetsEntriesWithAdditionalFilter() 공개 메소드

    public function testGetsEntriesWithAdditionalFilter()
    {
        $filter = 'textPayload = "hello world"';
        $this->connection->listEntries(['pageToken' => null, 'resourceNames' => ["projects/{$this->projectId}"], 'filter' => $filter . " AND logName = {$this->formattedName}"])->willReturn([])->shouldBeCalledTimes(1);
        $logger = $this->getLogger($this->connection);
        $entries = iterator_to_array($logger->entries(['filter' => $filter]));
        $this->assertEmpty($entries);
    }