2010-03-06 05:40:38 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @package testing
|
|
|
|
* @version $Id$
|
|
|
|
* @copyright (c) 2009 phpBB Group
|
2012-01-02 17:14:00 +00:00
|
|
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
2010-03-06 05:40:38 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-03-13 11:19:28 +01:00
|
|
|
class phpbb_deactivated_super_global_test extends phpbb_test_case
|
2010-03-06 05:40:38 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Checks that on write access the correct error is thrown
|
|
|
|
*/
|
2010-03-13 11:19:28 +01:00
|
|
|
public function test_write_triggers_error()
|
2010-03-06 05:40:38 +01:00
|
|
|
{
|
|
|
|
$this->setExpectedTriggerError(E_USER_ERROR);
|
2010-08-31 21:26:50 +02:00
|
|
|
$obj = new phpbb_request_deactivated_super_global($this->getMock('phpbb_request_interface'), 'obj', phpbb_request_interface::POST);
|
2010-03-06 05:40:38 +01:00
|
|
|
$obj->offsetSet(0, 0);
|
|
|
|
}
|
|
|
|
}
|