📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 23:46:00
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
vendor
/
fakerphp
/
faker
/
test
/
Faker
/
Provider
/
es_PE
📍 /home/orkouolp/web/testing.orkobd/laravel/vendor/fakerphp/faker/test/Faker/Provider/es_PE
🔄 Refresh
✏️
Editing: CompanyTest.php
Writable
<?php namespace Faker\Test\Provider\es_PE; use Faker\Provider\es_PE\Company; use Faker\Test\TestCase; /** * @group legacy */ final class CompanyTest extends TestCase { public function testGenerateValidRuc(): void { $companyRUC = $this->faker->ruc(); self::assertEquals(11, strlen($companyRUC)); self::assertMatchesRegularExpression('/^([1|2])0\d{9}$/', $companyRUC); } public function testGenerateValidRucPersonaNatural(): void { $companyRUC = $this->faker->ruc(true); self::assertMatchesRegularExpression('/^10\d{9}$/', $companyRUC); } public function testGenerateValidRucPersonaJuridica(): void { $companyRUC = $this->faker->ruc(false); self::assertMatchesRegularExpression('/^20\d{9}$/', $companyRUC); } protected function getProviders(): iterable { yield new Company($this->faker); } }
💾 Save Changes
❌ Cancel