Skip to content

Commit

Permalink
ci: Added SoarTest.php to test LaravelSoar facade
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Apr 1, 2024
1 parent 8272ccf commit b209007
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/SoarTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

/**
* This file is part of the guanguans/laravel-soar.
*
* (c) guanguans <[email protected]>
*
* 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__);

0 comments on commit b209007

Please sign in to comment.