diff --git a/tests/ViewTest.php b/tests/ViewTest.php index b649a56..a6abff5 100644 --- a/tests/ViewTest.php +++ b/tests/ViewTest.php @@ -314,7 +314,12 @@ class ViewTest extends TestCase html, ], - + [ + 'page-with-class-component-that-extends-another-class-component', + <<<'html' + another-class-component extended by my-class-component-that-extends-another-class-component + html, + ], ]; } diff --git a/tests/views/components/another-class-component.php b/tests/views/components/another-class-component.php new file mode 100644 index 0000000..2731373 --- /dev/null +++ b/tests/views/components/another-class-component.php @@ -0,0 +1,19 @@ + <<<'html' -my-functional-component -html; \ No newline at end of file +return fn (): string => 'my-functional-component'; \ No newline at end of file diff --git a/tests/views/pages/page-with-class-component-that-extends-another-class-component.php b/tests/views/pages/page-with-class-component-that-extends-another-class-component.php new file mode 100644 index 0000000..2fef30a --- /dev/null +++ b/tests/views/pages/page-with-class-component-that-extends-another-class-component.php @@ -0,0 +1 @@ + \ No newline at end of file