public function testZipUploading() { IronWorker::createZip($this->workerDir(), array('worker.php'), '_worker.zip', true); $res = $this->worker->postCode('worker.php', '_worker.zip', 'TestWorker'); $this->assertEqual($res->msg, 'Upload successful.'); }
function testZipUploading() { IronWorker::createZip($this->workerDir(), array('worker.php'), '_worker.zip', true); $res = $this->worker->postCode('worker.php', '_worker.zip', 'TestWorker'); $this->assertEqual($res->status_code, '200'); }