Google\Cloud\Tests\Snippets\Logging\SinkTest::testInfo PHP 메소드

testInfo() 공개 메소드

public testInfo ( )
    public function testInfo()
    {
        $snippet = $this->snippetFromMethod(Sink::class, 'info');
        $snippet->addLocal('sink', $this->sink);
        $this->connection->getSink(Argument::any())->shouldBeCalled()->willReturn(['destination' => 'Foo']);
        $this->sink->setConnection($this->connection->reveal());
        $res = $snippet->invoke();
        $this->assertEquals('Foo', $res->output());
    }