You are here

public function ProxyLogicTest::getClosure in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php \Doctrine\Tests\Common\Proxy\ProxyLogicTest::getClosure()

Converts a given callable into a closure

Parameters

callable $callable:

Return value

\Closure

2 calls to ProxyLogicTest::getClosure()
ProxyLogicTest::setUp in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.
ProxyLogicTest::testCloningCallsClonerWithClonedObject in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php

File

vendor/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());
  };
}