mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-10 20:38:44 -04:00
ZeroBin 0.17
* added deletion link. * small refactoring. * improved regex checks. * larger server alt on installation.
This commit is contained in:
parent
6c7de8aca8
commit
5b253cf77c
11 changed files with 217 additions and 104 deletions
|
@ -5,6 +5,8 @@ class RainTPLTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
private static $error = 'foo bar';
|
||||
|
||||
private static $status = '!*#@?$+';
|
||||
|
||||
private static $expire = array(
|
||||
'5min' => '5 minutes',
|
||||
'1hour' => '1 hour',
|
||||
|
@ -26,7 +28,8 @@ class RainTPLTest extends PHPUnit_Framework_TestCase
|
|||
$page = new RainTPL;
|
||||
// We escape it here because ENT_NOQUOTES can't be used in RainTPL templates.
|
||||
$page->assign('CIPHERDATA', htmlspecialchars(self::$data, ENT_NOQUOTES));
|
||||
$page->assign('ERRORMESSAGE', self::$error);
|
||||
$page->assign('ERROR', self::$error);
|
||||
$page->assign('STATUS', self::$status);
|
||||
$page->assign('VERSION', self::$version);
|
||||
$page->assign('BURNAFTERREADINGSELECTED', false);
|
||||
$page->assign('OPENDISCUSSION', false);
|
||||
|
|
|
@ -6,14 +6,14 @@ class trafficlimiterTest extends PHPUnit_Framework_TestCase
|
|||
public function setUp()
|
||||
{
|
||||
/* Setup Routine */
|
||||
$this->_path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'trafficlimit' . DIRECTORY_SEPARATOR;
|
||||
$this->_path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'trafficlimit';
|
||||
trafficlimiter::setPath($this->_path);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
/* Tear Down Routine */
|
||||
helper::rmdir($this->_path);
|
||||
helper::rmdir($this->_path . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
||||
public function testTrafficGetsLimited()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue