public function testObject()
{
$t = new MethodArgs();
$obj = new \stdClass();
$t->setObject($obj);
$this->assertSame($obj, $t->a);
$t->setObjectStrict($obj);
$this->assertSame($obj, $t->a);
if (!method_exists('PHPUnit_Runner_Version', 'id') || version_compare(\PHPUnit_Runner_Version::id(), '5.2.0', '<')) {
$this->setExpectedException('\\Exception');
} else {
$this->expectException('\\Exception');
}
$t->setObjectStrict(true);
}