Google\Cloud\Tests\System\Datastore\RunQueryTest::testGqlQueryWithBindings PHP Method

testGqlQueryWithBindings() public method

    public function testGqlQueryWithBindings()
    {
        $query = self::$client->gqlQuery('SELECT * From Person WHERE lastName = @lastName', ['bindings' => ['lastName' => 'McAllen']]);
        $results = $this->runQueryAndSortResults($query);
        $this->assertEquals(self::$data[2], $results[0]->get());
        $this->assertEquals(1, count($results));
    }