/** * @covers CouchDB::__construct */ protected function setUp() { $options = array('authorization' => 'basic', 'username' => 'admin', 'password' => 'admin'); $this->couchdb = new CouchDB($options); $this->couchdbLogin = new CouchDB(); if (UserTests::$startAclCount === null) { $acl = $this->couchdb->acl(); if ($acl->error) { UserTests::$startAclCount = 0; UserTests::$resetAcl = true; } else { UserTests::$startAclCount = count($acl->result['rules']); } } }