Basho\Tests\TimeSeriesOperationsTest::testFetchRow PHP Method

testFetchRow() public method

public testFetchRow ( )
    public function testFetchRow()
    {
        /** @var Command\TimeSeries\Response $response */
        $response = (new Command\Builder\TimeSeries\FetchRow(static::$riak))->atKey(static::$key)->inTable(static::$table)->build()->execute();
        $this->assertEquals('200', $response->getCode(), $response->getMessage());
        $this->assertCount(7, $response->getRow());
        if (static::$riak->getApi() instanceof Riak\Api\Pb) {
            $this->assertEquals("region", $response->getRow()[0]->getName());
            $this->assertEquals("South Atlantic", $response->getRow()[0]->getValue());
            $this->assertEquals("varchar", $response->getRow()[0]->getType());
            $this->assertEquals("uv_index", $response->getRow()[5]->getName());
            $this->assertEquals(10, $response->getRow()[5]->getValue());
            $this->assertEquals("sint64", $response->getRow()[5]->getType());
        } else {
            $this->assertEquals("South Atlantic", $response->getRow()['region']);
            $this->assertEquals(10, $response->getRow()['uv_index']);
        }
    }