Esempio n. 1
0
 /**
  * @runInSeparateProcess
  * @expectedException \LogicException
  */
 public function testIdExceptionPhp54()
 {
     if (version_compare(phpversion(), '5.4.0', '<')) {
         $this->markTestSkipped('Test skipped, for PHP 5.4 only.');
     }
     session_start();
     $this->proxy->setId('foo');
 }
 /**
  * @runInSeparateProcess
  * @preserveGlobalState disabled
  * @expectedException \LogicException
  */
 public function testIdExceptionPhp54()
 {
     if (PHP_VERSION_ID < 50400) {
         $this->markTestSkipped('Test skipped, for PHP 5.4 only.');
     }
     session_start();
     $this->proxy->setId('foo');
 }
Esempio n. 3
0
 /**
  * {@inheritdoc}
  */
 public function setId($id)
 {
     $this->saveHandler->setId($id);
 }
Esempio n. 4
0
 /**
  * @expectedException \LogicException
  */
 public function testIdException()
 {
     $this->proxy->setActive(true);
     $this->proxy->setId('foo');
 }
Esempio n. 5
0
 /**
  * @runInSeparateProcess
  * @preserveGlobalState disabled
  * @expectedException \LogicException
  */
 public function testIdException()
 {
     session_start();
     $this->proxy->setId('foo');
 }