function testArrayAccessProxiesProperties()
{
$file = __FILE__;
$obj = new \stdClass();
$obj->foo = 'test';
$wrapper = new DeprecationWrapper($obj, 'FOO', 1.9, array($this, 'report'));
$foo = $wrapper['foo'];
$line = __LINE__;
$this->assertEquals('test', $foo);
$this->assertEquals("{$file}:{$line}", $this->last_stack_line);
$wrapper[0] = 'value';
$line = __LINE__;
$this->assertEquals('value', $obj->{'0'});
$this->assertEquals("{$file}:{$line}", $this->last_stack_line);
}