4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection\Tests\LazyProxy\PhpDumper;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\DependencyInjection\Definition;
16 use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\NullDumper;
19 * Tests for {@see \Symfony\Component\DependencyInjection\PhpDumper\NullDumper}.
21 * @author Marco Pivetta <ocramius@gmail.com>
23 class NullDumperTest extends TestCase
25 public function testNullDumper()
27 $dumper = new NullDumper();
28 $definition = new Definition('stdClass');
30 $this->assertFalse($dumper->isProxyCandidate($definition));
31 $this->assertSame('', $dumper->getProxyFactoryCode($definition, 'foo', '(false)'));
32 $this->assertSame('', $dumper->getProxyCode($definition));