protected final function assertRecompilesWithRebind(\Closure $closure)
{
$this->assertRecompilesCorrectly($closure);
//In StaticClass scope
$boundClosure = \Closure::bind($closure, null, StaticClass::CLASS_TYPE);
$this->assertRecompilesCorrectly($boundClosure);
//With $this = new StaticClass()
$boundClosure = \Closure::bind($closure, new StaticClass());
$this->assertRecompilesCorrectly($boundClosure);
}