Phred/tests/Unit/FakerDemoTest.php
Funky Waddle 54303282d7
Some checks failed
CI / PHP ${{ matrix.php }} (8.1) (push) Has been cancelled
CI / PHP ${{ matrix.php }} (8.2) (push) Has been cancelled
CI / PHP ${{ matrix.php }} (8.3) (push) Has been cancelled
Too many things
2026-01-06 11:02:05 -06:00

23 lines
457 B
PHP

<?php
declare(strict_types=1);
namespace Phred\Tests\Unit;
use PHPUnit\Framework\TestCase;
use Faker\Factory;
class FakerDemoTest extends TestCase
{
public function test_faker_generates_data(): void
{
$faker = Factory::create();
$name = $faker->name();
$email = $faker->email();
$this->assertIsString($name);
$this->assertIsString($email);
$this->assertStringContainsString('@', $email);
}
}