Вход Регистрация
Файл: gapps/vendor/fzaninotto/faker/test/Faker/Provider/en_PH/AddressTest.php
Строк: 47
<?php

namespace FakerTestProvideren_PH;

use 
FakerGenerator;
use 
FakerProvideren_PHAddress;

class 
AddressTest extends PHPUnit_Framework_TestCase
{

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

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

    public function 
testProvince()
    {
      
$province $this->faker->province();
      
$this->assertNotEmpty($province);
      
$this->assertInternalType('string'$province);
    }

    public function 
testCity()
    {
      
$city $this->faker->city();
      
$this->assertNotEmpty($city);
      
$this->assertInternalType('string'$city);
    }

    public function 
testMunicipality()
    {
      
$municipality $this->faker->municipality();
      
$this->assertNotEmpty($municipality);
      
$this->assertInternalType('string'$municipality);
    }

    public function 
testBarangay()
    {
      
$barangay $this->faker->barangay();
      
$this->assertInternalType('string'$barangay);
    }
}
Онлайн: 0
Реклама