From b209007cf0ee9fb8c9e17356d34c93dc2a61c19f Mon Sep 17 00:00:00 2001 From: yaozm Date: Mon, 1 Apr 2024 16:34:40 +0800 Subject: [PATCH] ci: Added SoarTest.php to test LaravelSoar facade --- tests/SoarTest.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/SoarTest.php diff --git a/tests/SoarTest.php b/tests/SoarTest.php new file mode 100644 index 0000000..73dd452 --- /dev/null +++ b/tests/SoarTest.php @@ -0,0 +1,22 @@ + + * + * This source file is subject to the MIT license that is bundled. + */ + +namespace Tests; + +use Guanguans\LaravelSoar\Facades\Soar; + +it('can add macro method', function (): void { + Soar::macro('foo', function (): void {}); + + /** @noinspection PhpUndefinedMethodInspection */ + expect(Soar::foo())->toBeNull(); +})->group(__DIR__, __FILE__);