Example #1
0
 public function testDoCloudQueryWithPvalues()
 {
     $obj = new Object("TestObject");
     $obj->set("name", "alice");
     $obj->save();
     $resp = Query::doCloudQuery("SELECT * FROM TestObject " . "WHERE name = ? LIMIT ?", array("alice", 1));
     $this->assertGreaterThan(0, count($resp["results"]));
     $obj->destroy();
 }