<?php/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/namespaceSymfony\Component\DependencyInjection\Tests\LazyProxy\PhpDumper;
useSymfony\Component\DependencyInjection\Definition;
useSymfony\Component\DependencyInjection\LazyProxy\PhpDumper\NullDumper;
/**
* Tests for {@see \Symfony\Component\DependencyInjection\PhpDumper\NullDumper}
*
* @author Marco Pivetta <ocramius@gmail.com>
*
* @covers \Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\NullDumper
*/class NullDumperTestextends \PHPUnit_Framework_TestCase {
public functiontestNullDumper() {
$dumper = newNullDumper();
$definition = newDefinition('stdClass');
$this
->assertFalse($dumper
->isProxyCandidate($definition));
$this
->assertSame('', $dumper
->getProxyFactoryCode($definition, 'foo'));
$this
->assertSame('', $dumper
->getProxyCode($definition));
}
}