Google\Cloud\Tests\Logging\LoggingClientTest::testGetsEntriesWithNoResults PHP Method

testGetsEntriesWithNoResults() public method

    public function testGetsEntriesWithNoResults()
    {
        $secondProjectId = 'secondProjectId';
        $this->connection->listEntries(['pageToken' => null, 'resourceNames' => ['projects/' . $this->projectId, 'projects/' . $secondProjectId]])->willReturn([])->shouldBeCalledTimes(1);
        $this->client->setConnection($this->connection->reveal());
        $entries = iterator_to_array($this->client->entries(['projectIds' => [$secondProjectId]]));
        $this->assertEmpty($entries);
    }