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


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

namespace Faker\Test\Provider\uk_UA;

use 
Faker\Generator;
use 
Faker\Provider\uk_UA\Address;

class 
AddressTest extends \PHPUnit_Framework_TestCase
{

    
/**
     * @var Generator
     */
    
private $faker;

    public function 
setUp()
    {
        
$faker = new Generator();
        
$faker->addProvider(new Address($faker));
        
$this->faker $faker;
    }

    public function 
testPostCodeIsValid()
    {
        
$main '[0-9]{5}';
        
$pattern "/^($main)|($main-[0-9]{3})+$/";
        
$postcode $this->faker->postcode;
        
$this->assertRegExp($pattern$postcode'Post code ' $postcode ' is wrong!');
    }

    public function 
testEmptySuffixes()
    {
        
$this->assertEmpty($this->faker->citySuffix'City suffix should be empty!');
        
$this->assertEmpty($this->faker->streetSuffix'Street suffix should be empty!');
    }

    public function 
testStreetCyrOnly()
    {
        
$pattern "/[0-9А-ЩЯІЇЄЮа-щяіїєюьIVXCM][0-9А-ЩЯІЇЄЮа-щяіїєюь \'-.]*[А-Яа-я.]/u";
        
$streetName $this->faker->streetName;
        
$this->assertSame(
            
preg_match($pattern$streetName),
            
1,
            
'Street name ' $streetName ' is wrong!'
        
);
    }

    public function 
testCityNameCyrOnly()
    {
        
$pattern "/[А-ЩЯІЇЄЮа-щяіїєюь][0-9А-ЩЯІЇЄЮа-щяіїєюь \'-]*[А-Яа-я]/u";
        
$city $this->faker->city;
        
$this->assertSame(
            
preg_match($pattern$city),
            
1,
            
'City name ' $city ' is wrong!'
        
);
    }

    public function 
testRegionNameCyrOnly()
    {
        
$pattern "/[А-ЩЯІЇЄЮ][А-ЩЯІЇЄЮа-щяіїєюь]*а$/u";
        
$regionName $this->faker->region;
        
$this->assertSame(
            
preg_match($pattern$regionName),
            
1,
            
'Region name ' $regionName ' is wrong!'
        
);
    }

    public function 
testCountryCyrOnly()
    {
        
$pattern "/[А-ЩЯІЇЄЮа-щяіїєюьIVXCM][А-ЩЯІЇЄЮа-щяіїєюь \'-]*[А-Яа-я.]/u";
        
$country $this->faker->country;
        
$this->assertSame(
            
preg_match($pattern$country),
            
1,
            
'Country name ' $country ' is wrong!'
        
);
    }
}

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