Ejemplo n.º 1
0
 /**
  * Set entropy file /dev/urandom, see issue #3046
  *
  * @link https://github.com/zendframework/zf2/issues/3046
  */
 public function testSetEntropyDevUrandom()
 {
     if (!file_exists('/dev/urandom')) {
         $this->markTestSkipped("This test doesn't work because /dev/urandom file doesn't exist.");
     }
     $result = $this->config->setEntropyFile('/dev/urandom');
     $this->assertInstanceOf('Zend\\Session\\Config\\StandardConfig', $result);
 }
Ejemplo n.º 2
0
 public function testEntropyFileIsMutable()
 {
     $this->config->setEntropyFile(__FILE__);
     $this->assertEquals(__FILE__, $this->config->getEntropyFile());
 }