403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.146.1.el8_10.x86_64 #1 SMP Tue Jul 21 15:46:30 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/postfixadmin/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/postfixadmin/tests/RemoveFromArrayTest.php
<?php

class RemoveFromArrayTest extends \PHPUnit\Framework\TestCase {
    public function testBasic() {
        $list = array('a','b','c','d');

        list($found, $new) = remove_from_array($list, 'd');
        $this->assertEquals(1, $found);
        $this->assertEquals(array('a','b','c'), $new);

        list($found, $new) = remove_from_array($list, 'a');
        $this->assertEquals(1, $found);
        $this->assertEquals(array(1 => 'b',2 => 'c',3=>'d'), $new);

        list($found, $new) = remove_from_array($list, 'x');
        $this->assertEquals(0, $found);
        $this->assertEquals(array('a','b','c','d'), $new);
    }
}

/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */

Youez - 2016 - github.com/yon3zu
LinuXploit