diff --git a/exercises/practice/nucleotide-count/.meta/example.php b/exercises/practice/nucleotide-count/.meta/example.php index 5915a24f..494a44ea 100644 --- a/exercises/practice/nucleotide-count/.meta/example.php +++ b/exercises/practice/nucleotide-count/.meta/example.php @@ -1,27 +1,5 @@ . - * - * To disable strict typing, comment out the directive below. - */ - declare(strict_types=1); function nucleotideCount($dna) diff --git a/exercises/practice/nucleotide-count/NucleotideCountTest.php b/exercises/practice/nucleotide-count/NucleotideCountTest.php index 06601162..deb1a670 100644 --- a/exercises/practice/nucleotide-count/NucleotideCountTest.php +++ b/exercises/practice/nucleotide-count/NucleotideCountTest.php @@ -1,30 +1,9 @@ . - * - * To disable strict typing, comment out the directive below. - */ - declare(strict_types=1); use PHPUnit\Framework\TestCase; +use PHPUnit\Framework\Attributes\TestDox; class NucleotideCountTest extends TestCase { @@ -36,6 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 3e5c30a8-87e2-4845-a815-a49671ade970 */ + #[TestDox('Empty DNA sequence')] public function testEmptyDNASequence(): void { $this->assertSame([ @@ -49,6 +29,7 @@ public function testEmptyDNASequence(): void /** * uuid: a0ea42a6-06d9-4ac6-828c-7ccaccf98fec */ + #[TestDox('DNA sequence with single nucleotide')] public function testDNASequenceSingleNucleotide(): void { $this->assertSame([ @@ -62,6 +43,7 @@ public function testDNASequenceSingleNucleotide(): void /** * uuid: eca0d565-ed8c-43e7-9033-6cefbf5115b5 */ + #[TestDox('Repetitive DNA sequence')] public function testRepetitiveDNASequence(): void { $this->assertSame([ @@ -75,6 +57,7 @@ public function testRepetitiveDNASequence(): void /** * uuid: 40a45eac-c83f-4740-901a-20b22d15a39f */ + #[TestDox('DNA sequence with multiple nucleotides')] public function testDNASequenceWithMultipleNucleotides(): void { $this->assertSame([ @@ -88,6 +71,7 @@ public function testDNASequenceWithMultipleNucleotides(): void /** * uuid: b4c47851-ee9e-4b0a-be70-a86e343bd851 */ + #[TestDox('DNA sequence with invalid nucleotides')] public function testDNASequenceWithInvalidNucleotides(): void { $this->expectException(Exception::class);