Пример #1
0
 /**
  * Tests checking if there the data for an uploaded file.
  *
  * @return void
  */
 public function testHasFile()
 {
     //		$this->assertFalse($this->request->hasFile('nonExistent'),
     //			'FALSE should be returned for a non-existing file upload');
     $this->assertTrue($this->request->hasFile('noUploadedFile'), 'TRUE should be returned if the upload is specified, but no file is uploaded');
     //
     //		$this->assertTrue($this->request->hasFile('uploadedFile'),
     //			'TRUE should be returned for completed uploads.');
 }
Пример #2
0
 /**
  * Returns the session ID from the request object. If the request has no session, it returns NULL.
  *
  * @return string
  */
 protected function getSessionId()
 {
     return $this->request->getCookie($this->cookieName, null);
 }