Google\Cloud\Tests\Logging\LoggerTest::testGetsEntriesWithoutToken PHP Method

testGetsEntriesWithoutToken() public method

    public function testGetsEntriesWithoutToken()
    {
        $this->connection->listEntries(Argument::any())->willReturn(['entries' => [['textPayload' => $this->textPayload]]])->shouldBeCalledTimes(1);
        $logger = $this->getLogger($this->connection);
        $entries = iterator_to_array($logger->entries());
        $this->assertEquals($this->textPayload, $entries[0]->info()['textPayload']);
    }