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