You are here

public function ProxyClassGeneratorTest::testReferenceProxyRespectsMethodsParametersTypeHinting in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php, line 67

Class

ProxyClassGeneratorTest
Test the proxy generator. Its work is generating on-the-fly subclasses of a given model, which implement the Proxy pattern.

Namespace

Doctrine\Tests\Common\Proxy

Code

public function testReferenceProxyRespectsMethodsParametersTypeHinting() {
  $method = new ReflectionMethod($this->proxyClass, 'publicTypeHintedMethod');
  $params = $method
    ->getParameters();
  $this
    ->assertEquals(1, count($params));
  $this
    ->assertEquals('stdClass', $params[0]
    ->getClass()
    ->getName());
}