Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/Security/Tests/Core/LegacySecurityContextInterfaceTest.php
Строк: 42
<?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 SymfonyComponentSecurityTestsCore;

use 
SymfonyComponentSecurityCoreSecurityContextInterface;
use 
SymfonyComponentSecurityCoreSecurity;

class 
LegacySecurityContextInterfaceTest extends PHPUnit_Framework_TestCase
{
    
/**
     * Test if the BC Layer is working as intended
     */
    
public function testConstantSync()
    {
        
$this->iniSet('error_reporting', -& ~E_USER_DEPRECATED);

        
$this->assertSame(Security::ACCESS_DENIED_ERRORSecurityContextInterface::ACCESS_DENIED_ERROR);
        
$this->assertSame(Security::AUTHENTICATION_ERRORSecurityContextInterface::AUTHENTICATION_ERROR);
        
$this->assertSame(Security::LAST_USERNAMESecurityContextInterface::LAST_USERNAME);
    }
}
Онлайн: 0
Реклама