HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/meuwis/lmbm.be/vendor/fzaninotto/faker/test/Faker/Provider/en_PH/AddressTest.php
<?php

namespace Faker\Test\Provider\en_PH;

use Faker\Generator;
use Faker\Provider\en_PH\Address;
use PHPUnit\Framework\TestCase;

class AddressTest extends TestCase
{

    /**
     * @var Faker\Generator
     */
    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);
    }
}