public function it_should_unset_closures_in_global_array_when_saving_global_state()
{
vfsStream::setup('wproot3', null, ['wp' => ['wp-load.php' => 'some content']]);
$this->config['wpRootFolder'] = vfsStream::url('wproot3/wp');
$sut = $this->make_instance();
$sut->_initialize();
global $someVar;
$someVar = function () {
$foo = 'bar';
};
$sut->bootstrapWp();
$this->assertEquals(null, $someVar);
}