Skip to content

Commit f1c8b1b

Browse files
committed
test callability
1 parent 9d6f24d commit f1c8b1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/CodeTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ public function testSync(): void
1818
if (preg_match("/function ([A-Z][^(]*)/", $line, $matches)) {
1919
$fun = $matches[1];
2020
$tag = $exceptions[$fun] ?? strtolower($fun);
21+
$name = "\MicroHTML\\$fun";
22+
$this->assertIsCallable($name);
2123
// Call eg \MicroHTML\SECTION() and check that it contains "section"
22-
$this->assertStringContainsString($tag, (string)"\MicroHTML\\$fun"());
24+
$this->assertStringContainsString($tag, (string)$name());
2325
}
2426
}
2527
}

0 commit comments

Comments
 (0)