My attempts at exercism.org
1<?php
2
3declare(strict_types=1);
4
5use PHPUnit\Framework\TestCase;
6use PHPUnit\Framework\Attributes\TestDox;
7
8class HelloWorldTest extends TestCase
9{
10 public static function setUpBeforeClass(): void
11 {
12 require_once 'HelloWorld.php';
13 }
14
15 /**
16 * uuid: af9ffe10-dc13-42d8-a742-e7bdafac449d
17 */
18 #[TestDox('Say Hi!')]
19 public function testHelloWorld(): void
20 {
21 $this->assertEquals('Hello, World!', helloWorld());
22 }
23}