@@ -23,11 +23,12 @@ class StoreTest extends \PHPUnit_Framework_TestCase {
* @var Store
*/
private$store=null;
private$setUpDone=false;
publicfunctionsetUp(){
// Client Variables has to setup before the first instantiation of 'Store'
$_GET[CLIENT_RECORD_ID]='1234';
$_GET[CLIENT_SIP]='1234abcd';
// $_GET[CLIENT_SIP] = '12badcaffee34';
$_GET['key01']='1234';
$_POST['key02']='2345';
$_POST['key03']='3456';
...
...
@@ -35,13 +36,13 @@ class StoreTest extends \PHPUnit_Framework_TestCase {
$_GET['key04']='4567';
$_POST['key04']='5678';
$this->store=Store::getInstance("\n; some comment\n".T3_BODYTEXT_FORM."=testformnameDoNotChange\n".T3_BODYTEXT_DEBUG_SAVE."=6\n".T3_BODYTEXT_DEBUG_LOAD."=7\n");
$this->store=Store::getInstance("\n; some comment\n".T3_BODYTEXT_FORM."=testformnameDoNotChange\n".T3_BODYTEXT_DEBUG_SAVE."=6\n".T3_BODYTEXT_DEBUG_LOAD."=7\n",true);
}
publicfunctiontestGetInstance(){
$a=Store::getInstance();
$b=Store::getInstance();
$a=Store::getInstance('',true);
$b=Store::getInstance('',true);
$this->assertFalse($a===null,"There should be a class");
...
...
@@ -88,7 +89,7 @@ class StoreTest extends \PHPUnit_Framework_TestCase {
//TODO: CR: phpunit running _all_ tests, fails with this tests always. Found no way to debug the situation.
return;
# Violates SANATIZE class: sanatized string is always an empty string.
# Access are cached:
# Access are cached:
# Test: Retrieve a variable, default sanatize class