public function NullDumperTest::testNullDumper

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php, line 26

Class

NullDumperTest
Tests for { @author Marco Pivetta <ocramius@gmail.com>

Namespace

Symfony\Component\DependencyInjection\Tests\LazyProxy\PhpDumper

Code

public function testNullDumper() {
  $dumper = new NullDumper();
  $definition = new Definition('stdClass');
  $this
    ->assertFalse($dumper
    ->isProxyCandidate($definition));
  $this
    ->assertSame('', $dumper
    ->getProxyFactoryCode($definition, 'foo'));
  $this
    ->assertSame('', $dumper
    ->getProxyCode($definition));
}