public function testStartsWith() { $query = new LeanQuery("TestObject"); $query->startsWith("title", "clojure"); $out = $query->encode(); $expect = json_encode(array("title" => array('$regex' => "^clojure"))); $this->assertEquals($expect, $out["where"]); }