We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6f24d commit f1c8b1bCopy full SHA for f1c8b1b
tests/CodeTest.php
@@ -18,8 +18,10 @@ public function testSync(): void
18
if (preg_match("/function ([A-Z][^(]*)/", $line, $matches)) {
19
$fun = $matches[1];
20
$tag = $exceptions[$fun] ?? strtolower($fun);
21
+ $name = "\MicroHTML\\$fun";
22
+ $this->assertIsCallable($name);
23
// Call eg \MicroHTML\SECTION() and check that it contains "section"
- $this->assertStringContainsString($tag, (string)"\MicroHTML\\$fun"());
24
+ $this->assertStringContainsString($tag, (string)$name());
25
}
26
27
0 commit comments