function test_EmptyArray() { OCA_mozilla_sync\OutputData::$outputFlag = OCA_mozilla_sync\OutputData::ConstOutputBuffer; OCA_mozilla_sync\OutputData::$outputBuffer = ''; OCA_mozilla_sync\OutputData::write(array()); $this->assertTrue(OCA_mozilla_sync\OutputData::$outputBuffer === "[]\n"); }
private function clearRequest() { OCA_mozilla_sync\OutputData::$outputBuffer = ''; OCA_mozilla_sync\Utils::$requestMethod = 'GET'; OCA_mozilla_sync\Utils::$lastStatus = OCA_mozilla_sync\Utils::STATUS_OK; }