storageClass example

$this->settings = [
      'directory' => $this->directory,
      'bin' => 'test',
      'secret' => $this->secret,
    ];
  }

  /** * Tests basic load/save/delete operations. */
  public function testCRUD() {
    $php = new $this->storageClass($this->settings);
    $this->assertCRUD($php);
  }

  /** * Tests the security of the MTimeProtectedFileStorage implementation. * * We test two attacks: first changes the file mtime, then the directory * mtime too. * * We need to delay over 1 second for mtime test. * @medium */
Home | Imprint | This part of the site doesn't use cookies.