123456789101112131415161718192021222324252627 |
- <?php
- namespace Faker\Test\Provider\zh_TW;
- use Faker\Generator;
- use Faker\Provider\zh_TW\Company;
- class CompanyTest extends \PHPUnit_Framework_TestCase
- {
- /**
- * @var Generator
- */
- private $faker;
- public function setUp()
- {
- $faker = new Generator();
- $faker->addProvider(new Company($faker));
- $this->faker = $faker;
- }
- public function testVAT()
- {
- $this->assertEquals(8, floor(log10($this->faker->VAT) + 1));
- }
- }
|