Google\Cloud\Tests\Snippets\Storage\StorageObjectTest::testInfo PHP Method

testInfo() public method

public testInfo ( )
    public function testInfo()
    {
        $snippet = $this->snippetFromMethod(StorageObject::class, 'info');
        $snippet->addLocal('object', $this->object);
        $this->connection->getObject(Argument::any())->shouldBeCalled()->willReturn(['name' => self::OBJECT, 'bucket' => self::BUCKET, 'size' => 1, 'location' => 'right behind you!']);
        $this->object->setConnection($this->connection->reveal());
        $res = $snippet->invoke();
        $this->assertEquals('1', $res->output());
    }