assertSame([], array_values(array_diff($offered, $files)), 'Jede Auswahl braucht eine vorhandene Datei.'); $this->assertSame(['gelbe-unterstreichung', 'signalstrahlen'], array_values(array_diff($files, $offered)), 'Unterstreichung und Strahlen haben eigene Einstellungen.'); } public function test_labels_are_present_for_every_symbol(): void { foreach (HeadingAccent::SYMBOLS as $name => $label) { $this->assertNotSame('', trim($label), $name); } } public function test_only_known_names_are_accepted(): void { $this->assertSame('buch', HeadingAccent::symbol(['symbol' => 'buch'])); $this->assertNull(HeadingAccent::symbol([])); $this->assertNull(HeadingAccent::symbol(['symbol' => ''])); $this->assertNull(HeadingAccent::symbol(['symbol' => '../../.env'])); $this->assertNull(HeadingAccent::symbol(['symbol' => 'signalstrahlen'])); $this->assertNull(HeadingAccent::symbol(['symbol' => ['buch']])); } public function test_the_brush_needs_the_exact_value(): void { $this->assertTrue(HeadingAccent::hasBrush(['accent' => 'brush'])); $this->assertFalse(HeadingAccent::hasBrush(['accent' => 'rays'])); $this->assertFalse(HeadingAccent::hasBrush([])); } }