📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 12:15:42
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
vendor
/
fakerphp
/
faker
/
test
/
Faker
/
Provider
/
fr_CH
📍 /home/orkouolp/web/testing.orkobd/laravel/vendor/fakerphp/faker/test/Faker/Provider/fr_CH
🔄 Refresh
✏️
Editing: AddressTest.php
Writable
<?php namespace Faker\Test\Provider\fr_CH; use Faker\Provider\fr_CH\Address; use Faker\Provider\fr_CH\Person; use Faker\Test\TestCase; /** * @group legacy */ final class AddressTest extends TestCase { public function testCanton(): void { $canton = $this->faker->canton(); self::assertIsArray($canton); self::assertCount(1, $canton); foreach ($canton as $cantonShort => $cantonName) { self::assertIsString($cantonShort); self::assertEquals(2, strlen($cantonShort)); self::assertIsString($cantonName); self::assertGreaterThan(2, strlen($cantonName)); } } public function testCantonName(): void { $cantonName = $this->faker->cantonName(); self::assertIsString($cantonName); self::assertGreaterThan(2, strlen($cantonName)); } public function testCantonShort(): void { $cantonShort = $this->faker->cantonShort(); self::assertIsString($cantonShort); self::assertEquals(2, strlen($cantonShort)); } public function testAddress(): void { $address = $this->faker->address(); self::assertIsString($address); } protected function getProviders(): iterable { yield new Address($this->faker); yield new Person($this->faker); } }
💾 Save Changes
❌ Cancel