public function testSecureClosureFailWithoutProvider() { $this->setExpectedException('RuntimeException'); serialize(new SecureClosure(function () { })); }