function testWrapObject()
{
$obj = new DeprecationWrapperTestObj1();
$obj = new DeprecationWrapper($obj, 'BAD!', 1.8, array($this, 'report'));
$file = __FILE__;
$foo = $obj->foo;
$line = __LINE__;
$this->assertEquals($foo, 'foo');
$this->assertEquals("{$file}:{$line}", $this->last_stack_line);
$foo = $obj->foo();
$line = __LINE__;
$this->assertEquals($foo, 'foo');
$this->assertEquals("{$file}:{$line}", $this->last_stack_line);
$foo = "{$obj}";
$line = __LINE__;
$this->assertEquals($foo, 'foo');
$this->assertEquals("{$file}:{$line}", $this->last_stack_line);
}