!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/   drwxr-xr-x
Free 116.83 GB of 200.55 GB (58.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace PhpParser;

class 
CommentTest extends \PHPUnit_Framework_TestCase
{
    public function 
testGetSet() {
        
$comment = new Comment('/* Some comment */'110);

        
$this->assertSame('/* Some comment */'$comment->getText());
        
$this->assertSame('/* Some comment */', (string) $comment);
        
$this->assertSame(1$comment->getLine());
        
$this->assertSame(10$comment->getFilePos());

        
$comment->setText('/* Some other comment */');
        
$comment->setLine(10);

        
$this->assertSame('/* Some other comment */'$comment->getText());
        
$this->assertSame('/* Some other comment */', (string) $comment);
        
$this->assertSame(10$comment->getLine());
    }

    
/**
     * @dataProvider provideTestReformatting
     */
    
public function testReformatting($commentText$reformattedText) {
        
$comment = new Comment($commentText);
        
$this->assertSame($reformattedText$comment->getReformattedText());
    }

    public function 
provideTestReformatting() {
        return array(
            array(
'// Some text' "\n"'// Some text'),
            array(
'/* Some text */''/* Some text */'),
            array(
                
'/**
     * Some text.
     * Some more text.
     */'
,
                
'/**
 * Some text.
 * Some more text.
 */'
            
),
            array(
                
'/*
        Some text.
        Some more text.
    */'
,
                
'/*
    Some text.
    Some more text.
*/'
            
),
            array(
                
'/* Some text.
       More text.
       Even more text. */'
,
                
'/* Some text.
   More text.
   Even more text. */'
            
),
            array(
                
'/* Some text.
       More text.
         Indented text. */'
,
                
'/* Some text.
   More text.
     Indented text. */'
,
            ),
            
// invalid comment -> no reformatting
            
array(
                
'hallo
    world'
,
                
'hallo
    world'
,
            ),
        );
    }
}

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