Skip to content

Commit 064b8b0

Browse files
committed
test: add test for classname filter
1 parent 22bf430 commit 064b8b0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/system/Test/FilterTestTraitTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ public function testCallerSupportArray(): void
7373
$this->assertSame('http://hellowworld.com', $result->getBody());
7474
}
7575

76+
public function testCallerSupportClassname(): void
77+
{
78+
$caller = $this->getFilterCaller(Customfilter::class, 'before');
79+
$result = $caller();
80+
81+
$this->assertSame('http://hellowworld.com', $result->getBody());
82+
}
83+
7684
public function testCallerUsesClonedInstance(): void
7785
{
7886
$caller = $this->getFilterCaller('test-customfilter', 'before');

0 commit comments

Comments
 (0)