Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/NullDumperTest.php
Строк: 65
<?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.
 */

namespace SymfonyComponentDependencyInjectionTestsLazyProxyPhpDumper;

use 
SymfonyComponentDependencyInjectionDefinition;
use 
SymfonyComponentDependencyInjectionLazyProxyPhpDumperNullDumper;

/**
 * Tests for {@see SymfonyComponentDependencyInjectionPhpDumperNullDumper}.
 *
 * @author Marco Pivetta <ocramius@gmail.com>
 *
 * @covers SymfonyComponentDependencyInjectionLazyProxyPhpDumperNullDumper
 */
class NullDumperTest extends PHPUnit_Framework_TestCase
{
    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));
    }
}
Онлайн: 2
Реклама