Skip to content

Commit 7dc7087

Browse files
committed
test: add test for Filter instance
1 parent 0dc64cd commit 7dc7087

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
@@ -81,6 +81,14 @@ public function testCallerSupportClassname(): void
8181
$this->assertSame('http://hellowworld.com', $result->getBody());
8282
}
8383

84+
public function testCallerSupportsFilterInstance(): void
85+
{
86+
$caller = $this->getFilterCaller(new Customfilter(), 'before');
87+
$result = $caller();
88+
89+
$this->assertSame('http://hellowworld.com', $result->getBody());
90+
}
91+
8492
public function testCallerUsesClonedInstance(): void
8593
{
8694
$caller = $this->getFilterCaller('test-customfilter', 'before');

0 commit comments

Comments
 (0)