public function testCallable()
{
$t = new MethodArgs();
$callback = function () {
};
$t->setCallable($callback);
$this->assertSame($callback, $t->a);
$t->setCallableStrict($callback);
$this->assertSame($callback, $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->setCallableStrict(true);
}