public function testQueryBuilder() { //testing query building with tokenk supplied $result = self::callProtected($this->firebase, 'buildQuery'); $this->assertEquals(array('auth' => $this->token), $result); //testing query building without token $this->firebase->setOption('token', null); $result = self::callProtected($this->firebase, 'buildQuery'); $this->assertEquals(array(), $result); }