diff --git a/tests/BladeDirectivesTest.php b/tests/BladeDirectivesTest.php index e8337ed..fbbc0f1 100644 --- a/tests/BladeDirectivesTest.php +++ b/tests/BladeDirectivesTest.php @@ -328,6 +328,8 @@ public function testCustomDirective() $this->provider->register(); $this->provider->boot(); Blade::directive('greet', function ($person) { + $person = eval("return $person;"); + return "Hello $person!"; }); $extensions = $view->getExtensions(); diff --git a/tests/greeting.pug b/tests/greeting.pug index df23c92..069bd2f 100644 --- a/tests/greeting.pug +++ b/tests/greeting.pug @@ -1 +1 @@ -| @greet(Bob) +| @greet('Bob')