mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
b95fdacdd3
PHPBB3-11700
23 lines
586 B
PHP
23 lines
586 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @package testing
|
|
* @version $Id$
|
|
* @copyright (c) 2009 phpBB Group
|
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
|
*
|
|
*/
|
|
|
|
class phpbb_deactivated_super_global_test extends phpbb_test_case
|
|
{
|
|
/**
|
|
* Checks that on write access the correct error is thrown
|
|
*/
|
|
public function test_write_triggers_error()
|
|
{
|
|
$this->setExpectedTriggerError(E_USER_ERROR);
|
|
$obj = new \phpbb\request\deactivated_super_global($this->getMock('\phpbb\request\request_interface'), 'obj', \phpbb\request\request_interface::POST);
|
|
$obj->offsetSet(0, 0);
|
|
}
|
|
}
|