!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/test/Text_Statistics/tests/   drwxr-xr-x
Free 9.83 GB of 61.93 GB (15.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     WordTest.php (2.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// Call Text_WordTest::main() if this source file is executed directly.
if (!defined('PHPUnit_MAIN_METHOD')) {
    
define('PHPUnit_MAIN_METHOD''Text_WordTest::main');
}

require_once 
'PHPUnit/Framework.php';

chdir(dirname(__FILE__) . '/../');
require_once 
'Text/Word.php';

/**
 * Test class for Text_Word.
 * Generated by PHPUnit on 2008-01-31 at 21:26:35.
 */
class Text_WordTest extends PHPUnit_Framework_TestCase
{
    protected static 
$known_words = array(
        
'the'        => 1,
        
'late'       => 1,
        
'hello'      => 2,
        
'frantic'    => 2,
        
'programmer' => 3
    
);

    protected static 
$special_words = array(
        
'absolutely' => 4,
        
'alien'      => 3,
        
'ion'        => 2,
        
'tortion'    => 2,
        
'gracious'   => 2,
        
'lien'       => 1,
        
'syllable'   => 3
    
);

    
/**
     * Runs the test methods of this class.
     *
     * @access public
     * @static
     */
    
public static function main()
    {
        require_once 
'PHPUnit/TextUI/TestRunner.php';

        
$suite  = new PHPUnit_Framework_TestSuite('Text_WordTest');
        
$result PHPUnit_TextUI_TestRunner::run($suite);
    }



    
/**
     * @todo Implement test_mungeWord().
     */
    
public function test_mungeWord() {
        
// Remove the following lines when you implement this test.
        
$this->markTestIncomplete(
          
'This test has not been implemented yet.'
        
);
    }

    
/**
     * @todo Implement test_countSpecialSyllables().
     */
    
public function test_countSpecialSyllables() {
        
// Remove the following lines when you implement this test.
        
$this->markTestIncomplete(
          
'This test has not been implemented yet.'
        
);
    }



    public function 
testNumSyllablesKnownWords()
    {
        foreach (
self::$known_words as $word => $syllables) {
            
$obj = new Text_Word($word);
            
$this->assertEquals(
                
$syllables$obj->numSyllables(),
                
"$word has incorrect syllable count"
            
);
        }
    }



    public function 
testNumSyllablesSpecialWords()
    {
        foreach (
self::$special_words as $word => $syllables) {
            
$obj = new Text_Word($word);
            
$this->assertEquals(
                
$syllables$obj->numSyllables(),
                
"$word has incorrect syllable count"
            
);
        }
    }
}

// Call Text_WordTest::main() if this source file is executed directly.
if (PHPUnit_MAIN_METHOD == 'Text_WordTest::main') {
    
Text_WordTest::main();
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5273 ]--