Skip to content

Commit b209007

Browse files
committed
ci: Added SoarTest.php to test LaravelSoar facade
1 parent 8272ccf commit b209007

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/SoarTest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of the guanguans/laravel-soar.
7+
*
8+
* (c) guanguans <ityaozm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled.
11+
*/
12+
13+
namespace Tests;
14+
15+
use Guanguans\LaravelSoar\Facades\Soar;
16+
17+
it('can add macro method', function (): void {
18+
Soar::macro('foo', function (): void {});
19+
20+
/** @noinspection PhpUndefinedMethodInspection */
21+
expect(Soar::foo())->toBeNull();
22+
})->group(__DIR__, __FILE__);

0 commit comments

Comments
 (0)