/**
  * @test
  */
 public function hasKeyReturnsTrueOrFalseAccordingToAvailableKeys()
 {
     $session = new \TYPO3\Flow\Session\TransientSession();
     $session->start();
     $session->putData('theKey', 'some data');
     $this->assertTrue($session->hasKey('theKey'));
     $this->assertFalse($session->hasKey('noKey'));
 }
示例#2
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     if (class_exists('\\TYPO3\\Flow\\Session\\Session') === false) {
         $this->markTestSkipped('Class \\TYPO3\\Flow\\Session\\Session not found');
     }
     $session = new \TYPO3\Flow\Session\TransientSession();
     $session->start();
     $this->object = new \Aimeos\MW\Session\Flow($session);
 }