Google\Cloud\Tests\Snippets\Logging\PsrLoggerTest::testDebug PHP Method

testDebug() public method

public testDebug ( )
    public function testDebug()
    {
        $snippet = $this->snippetFromMethod(PsrLogger::class, 'debug');
        $snippet->addLocal('psrLogger', $this->psr);
        $this->connection->writeEntries(Argument::that(function ($args) {
            if ($args['entries'][0]['severity'] !== Logger::DEBUG) {
                return false;
            }
            return true;
        }))->shouldBeCalled();
        $this->psr->setConnection($this->connection->reveal());
        $snippet->invoke();
    }