public function sessionContestProvider()
 {
     $bad = array(null, '', 0, TestData::genASCIIStr(24), 'session_ok', 'contest_ok');
     for ($i = 0; $i < sizeof($bad); $i++) {
         for ($k = 0; $k < sizeof($bad); $k++) {
             if ($bad[$i] != 'session_ok' || $bad[$k] != 'contest_ok') {
                 $res[] = array($bad[$i], $bad[$k]);
             }
         }
     }
     return $res;
 }
 /**
  *@dataProvider pluginSideProvider
  */
 public function testBadContextForPluginRequests($side)
 {
     $bad = array(null, '', 0, TestData::genASCIIStr(24));
     foreach ($bad as $sessionID) {
         $req = TestData::fillRequest('AvailablePluginsRequest', array('pluginSide' => ucfirst($side), 'sessionID' => $sessionID));
         $this->assertEquals(createFailRes(239), RequestSender::send($req));
         $req = TestData::fillRequest('AdjustPluginRequest', array('sessionID' => $sessionID, 'side' => ucfirst($side), 'description' => TestData::genUnicodeStr(42), 'pluginAlias' => TestData::genFileName(12), 'pluginData' => TestData::genUnicodeStr(42)));
         $this->assertEquals(createFailRes(239), RequestSender::send($req));
         $req = TestData::fillRequest('RemovePluginRequest', array('pluginAlias' => TestData::genFileName(12), 'sessionID' => $sessionID, 'side' => ucfirst($side)));
         $this->assertEquals(createFailRes(239), RequestSender::send($req));
         $req = TestData::fillRequest('DownloadPluginRequest', array('pluginAlias' => TestData::genFileName(12), 'sessionID' => $sessionID, 'side' => ucfirst($side)));
         $this->assertEquals(createFailRes(239), RequestSender::send($req));
     }
 }