2010-03-06 05:40:38 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
2014-05-27 20:18:06 +02:00
|
|
|
* This file is part of the phpBB Forum Software package.
|
|
|
|
*
|
|
|
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
|
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
|
|
*
|
|
|
|
* For full copyright and license information, please see
|
|
|
|
* the docs/CREDITS.txt file.
|
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);
|
2013-09-10 14:01:09 +02:00
|
|
|
$obj = new \phpbb\request\deactivated_super_global($this->getMock('\phpbb\request\request_interface'), 'obj', \phpbb\request\request_interface::POST);
|
2010-03-06 05:40:38 +01:00
|
|
|
$obj->offsetSet(0, 0);
|
|
|
|
}
|
|
|
|
}
|