public function testSetAnonymousFunction()
{
$this->specify("Registering a service via anonymous function does now work correctly", function () {
$this->phDi->set('request2', function () {
return new Request();
});
expect(get_class($this->phDi->get('request2')))->equals('Phalcon\\Http\\Request');
});
}