!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:     ImageTest.php (2.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Faker\Test\Provider;

use 
Faker\Provider\Image;

class 
ImageTest extends \PHPUnit_Framework_TestCase
{
    public function 
testImageUrlUses640x680AsTheDefaultSize()
    {
        
$this->assertRegExp('#^http://lorempixel.com/640/480/#'Image::imageUrl());
    }

    public function 
testImageUrlAcceptsCustomWidthAndHeight()
    {
        
$this->assertRegExp('#^http://lorempixel.com/800/400/#'Image::imageUrl(800400));
    }

    public function 
testImageUrlAcceptsCustomCategory()
    {
        
$this->assertRegExp('#^http://lorempixel.com/800/400/nature/#'Image::imageUrl(800400'nature'));
    }

    public function 
testImageUrlAcceptsCustomText()
    {
        
$this->assertRegExp('#^http://lorempixel.com/800/400/nature/Faker#'Image::imageUrl(800400'nature'false'Faker'));
    }

    public function 
testImageUrlAddsARandomGetParameterByDefault()
    {
        
$url Image::imageUrl(800400);
        
$splitUrl preg_split('/\?/'$url);

        
$this->assertEquals(count($splitUrl), 2);
        
$this->assertRegexp('#\d{5}#'$splitUrl[1]);
    }

    
/**
     * @expectedException \InvalidArgumentException
     */
    
public function testUrlWithDimensionsAndBadCategory()
    {
        
Image::imageUrl(800400'bullhonky');
    }

    public function 
testDownloadWithDefaults()
    {
        
$url "http://www.lorempixel.com/";
        
$curlPing curl_init($url);
        
curl_setopt($curlPingCURLOPT_TIMEOUT5);
        
curl_setopt($curlPingCURLOPT_CONNECTTIMEOUT5);
        
curl_setopt($curlPingCURLOPT_RETURNTRANSFERtrue);
        
$data curl_exec($curlPing);
        
$httpCode curl_getinfo($curlPingCURLINFO_HTTP_CODE);
        
curl_close($curlPing);

        if (
$httpCode 200 $httpCode 300) {
            
$this->markTestSkipped("LoremPixel is offline, skipping image download");
        }

        
$file Image::image(sys_get_temp_dir());
        
$this->assertFileExists($file);
        if (
function_exists('getimagesize')) {
            list(
$width$height$type$attr) = getimagesize($file);
            
$this->assertEquals(640$width);
            
$this->assertEquals(480$height);
            
$this->assertEquals(constant('IMAGETYPE_JPEG'), $type);
        } else {
            
$this->assertEquals('jpg'pathinfo($filePATHINFO_EXTENSION));
        }
        if (
file_exists($file)) {
            
unlink($file);
        }
    }
}

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