ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
EchoingTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26use PHPUnit\Framework\TestCase;
27
28class EchoingTest extends TestCase
29{
31
32 public function setUp(): void
33 {
34 $this->retriever = new Echoing();
35 }
36
37 public function testGetHelpTextEchoes(): void
38 {
39 $result = $this->retriever->getHelpText(
41 new Topic("foo"),
42 new Topic("bar")
43 );
44
45 $this->assertEquals(["tooltip: foo", "tooltip: bar"], $result);
46 }
47}
A purpose describes the intended use for a certain help text.
Definition: Purpose.php:47
This HelpTextRetriever simply echo the purpose and the topics for debugging and development purpose.
Definition: Echoing.php:31
This is just a class that marks a string as a help topic.
Definition: Topic.php:27