!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/php53/usr/share/pear/test/Translation/Symfony/Component/Translation/Tests/   drwxr-xr-x
Free 293.3 GB of 429.69 GB (68.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MessageSelectorTest.php (5.03 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\MessageSelector;

class 
MessageSelectorTest extends \PHPUnit_Framework_TestCase
{
    
/**
     * @dataProvider getChooseTests
     */
    
public function testChoose($expected$id$number)
    {
        
$selector = new MessageSelector();

        
$this->assertEquals($expected$selector->choose($id$number'en'));
    }

    public function 
testReturnMessageIfExactlyOneStandardRuleIsGiven()
    {
        
$selector = new MessageSelector();

        
$this->assertEquals('There are two apples'$selector->choose('There are two apples'2'en'));
    }

    
/**
     * @dataProvider getNonMatchingMessages
     * @expectedException \InvalidArgumentException
     */
    
public function testThrowExceptionIfMatchingMessageCannotBeFound($id$number)
    {
        
$selector = new MessageSelector();

        
$selector->choose($id$number'en');
    }

    public function 
getNonMatchingMessages()
    {
        return array(
            array(
'{0} There are no apples|{1} There is one apple'2),
            array(
'{1} There is one apple|]1,Inf] There are %count% apples'0),
            array(
'{1} There is one apple|]2,Inf] There are %count% apples'2),
            array(
'{0} There are no apples|There is one apple'2),
        );
    }

    public function 
getChooseTests()
    {
        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(
'There are no apples''{0}     There are no apples|{1} There is one apple|]1,Inf] There are %count% apples'0),
            array(
'There are no apples''{0}There are no apples|{1} There is one apple|]1,Inf] There are %count% apples'0),

            array(
'There is one apple''{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples'1),

            array(
'There are %count% apples''{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples'10),
            array(
'There are %count% apples''{0} There are no apples|{1} There is one apple|]1,Inf]There are %count% apples'10),
            array(
'There are %count% apples''{0} There are no apples|{1} There is one apple|]1,Inf]     There are %count% apples'10),

            array(
'There are %count% apples''There is one apple|There are %count% apples'0),
            array(
'There is one apple''There is one apple|There are %count% apples'1),
            array(
'There are %count% apples''There is one apple|There are %count% apples'10),

            array(
'There are %count% apples''one: There is one apple|more: There are %count% apples'0),
            array(
'There is one apple''one: There is one apple|more: There are %count% apples'1),
            array(
'There are %count% apples''one: There is one apple|more: There are %count% apples'10),

            array(
'There are no apples''{0} There are no apples|one: There is one apple|more: There are %count% apples'0),
            array(
'There is one apple''{0} There are no apples|one: There is one apple|more: There are %count% apples'1),
            array(
'There are %count% apples''{0} There are no apples|one: There is one apple|more: There are %count% apples'10),

            array(
'''{0}|{1} There is one apple|]1,Inf] There are %count% apples'0),
            array(
'''{0} There are no apples|{1}|]1,Inf] There are %count% apples'1),

            
// Indexed only tests which are Gettext PoFile* compatible strings.
            
array('There are %count% apples''There is one apple|There are %count% apples'0),
            array(
'There is one apple''There is one apple|There are %count% apples'1),
            array(
'There are %count% apples''There is one apple|There are %count% apples'2),

            
// Tests for float numbers
            
array('There is almost one apple''{0} There are no apples|]0,1[ There is almost one apple|{1} There is one apple|[1,Inf] There is more than one apple'0.7),
            array(
'There is one apple''{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple'1),
            array(
'There is more than one apple''{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple'1.7),
            array(
'There are no apples''{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple'0),
            array(
'There are no apples''{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple'0.0),
            array(
'There are no apples''{0.0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple'0),
        );
    }
}

:: 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.0951 ]--