NullDumperTest.php 1007 B

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