@@ -26,7 +26,7 @@ protected function setUp(): void
2626
2727 public function testFilterUsesDefaultRewriter (): void
2828 {
29- $ this ->tagRewriter ->method ('processFragment ' )
29+ $ this ->tagRewriter ->method ('processBodyFragment ' )
3030 ->with ('<p>input</p> ' )
3131 ->willReturn ('<p class="processed">output</p> ' );
3232
@@ -37,7 +37,7 @@ public function testFilterUsesDefaultRewriter(): void
3737
3838 public function testFilterUsesNamedRewriter (): void
3939 {
40- $ this ->tagRewriter ->method ('processFragment ' )
40+ $ this ->tagRewriter ->method ('processBodyFragment ' )
4141 ->with ('<p>input</p> ' )
4242 ->willReturn ('<p class="processed">output</p> ' );
4343
@@ -49,9 +49,9 @@ public function testFilterUsesNamedRewriter(): void
4949 public function testFilterUsesOnlyDefaultRewriter (): void
5050 {
5151 $ defaultRewriter = $ this ->createStub (TagRewriter::class);
52- $ defaultRewriter ->method ('processFragment ' )->with ('something ' )->willReturn ('default ' );
52+ $ defaultRewriter ->method ('processBodyFragment ' )->with ('something ' )->willReturn ('default ' );
5353 $ otherRewriter = $ this ->createStub (TagRewriter::class);
54- $ otherRewriter ->method ('processFragment ' )->willReturn ('other ' );
54+ $ otherRewriter ->method ('processBodyFragment ' )->willReturn ('other ' );
5555
5656 $ this ->extension ->setDefaultTagRewriter ($ defaultRewriter );
5757 $ this ->extension ->addTagRewriter ('other-rewriter ' , $ otherRewriter );
@@ -62,9 +62,9 @@ public function testFilterUsesOnlyDefaultRewriter(): void
6262 public function testFilterUsesOnlySpecialRewriter (): void
6363 {
6464 $ defaultRewriter = $ this ->createStub (TagRewriter::class);
65- $ defaultRewriter ->method ('processFragment ' )->willReturn ('default ' );
65+ $ defaultRewriter ->method ('processBodyFragment ' )->willReturn ('default ' );
6666 $ otherRewriter = $ this ->createStub (TagRewriter::class);
67- $ otherRewriter ->method ('processFragment ' )->with ('something ' )->willReturn ('other ' );
67+ $ otherRewriter ->method ('processBodyFragment ' )->with ('something ' )->willReturn ('other ' );
6868
6969 $ this ->extension ->setDefaultTagRewriter ($ defaultRewriter );
7070 $ this ->extension ->addTagRewriter ('other-rewriter ' , $ otherRewriter );
0 commit comments