Google\Cloud\Tests\Snippets\Logging\LoggerTest::testEntryWithOptions PHP Method

testEntryWithOptions() public method

    public function testEntryWithOptions()
    {
        $snippet = $this->snippetFromMethod(Logger::class, 'entry', 2);
        $snippet->addLocal('logger', $this->logger);
        $snippet->addUse(Logger::class);
        $res = $snippet->invoke('entry');
        $this->assertInstanceOf(Entry::class, $res->returnVal());
    }