You are here

public function ProxyLogicTest::getClosure in Plug 7

Converts a given callable into a closure

Parameters

callable $callable:

Return value

\Closure

2 calls to ProxyLogicTest::getClosure()
ProxyLogicTest::setUp in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php
ProxyLogicTest::testCloningCallsClonerWithClonedObject in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php, line 656

Class

ProxyLogicTest
Test the generated proxies behavior. These tests make assumptions about the structure of LazyLoadableObject

Namespace

Doctrine\Tests\Common\Proxy

Code

public function getClosure($callable) {
  return function () use ($callable) {
    call_user_func_array($callable, func_get_args());
  };
}