@@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
use PrivateBin\data\data;
|
||||
use PrivateBin\privatebin;
|
||||
use PrivateBin\serversalt;
|
||||
use PrivateBin\trafficlimiter;
|
||||
|
||||
class privatebinTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
protected $_model;
|
||||
@@ -6,7 +12,7 @@ class privatebinTest extends PHPUnit_Framework_TestCase
|
||||
public function setUp()
|
||||
{
|
||||
/* Setup Routine */
|
||||
$this->_model = privatebin_data::getInstance(array('dir' => PATH . 'data'));
|
||||
$this->_model = data::getInstance(array('dir' => PATH . 'data'));
|
||||
$this->reset();
|
||||
}
|
||||
|
||||
@@ -21,8 +27,9 @@ class privatebinTest extends PHPUnit_Framework_TestCase
|
||||
$_POST = array();
|
||||
$_GET = array();
|
||||
$_SERVER = array();
|
||||
if ($this->_model->exists(helper::getPasteId()))
|
||||
if ($this->_model->exists(helper::getPasteId())) {
|
||||
$this->_model->delete(helper::getPasteId());
|
||||
}
|
||||
helper::confRestore();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user